Question: how to export data from r to text file?
Answer: Write data from R to a txt file: write.table(my_data, file = “my_data.txt”, sep = “”) Write data from R to a csv file: write.csv(my_data, file = “my_data.csv”)