write text r code example
Example 1: write text r
write.table(x, file, append = FALSE, sep = " ", dec = ".",
row.names = TRUE, col.names = TRUE)
Example 2: write text r
write.csv(my_data, file = "my_data.csv")
write.csv2(my_data, file = "my_data.csv")