BLOG

How to Write CSV in R

21-02-2019  0 Comment(s)

 CSV with R in order to save data and share files with others. One way to output a csv from R is with the command write.csv. Here is an example of how to write CSV in R:

# Write CSV in R
write.csv(MyData, file = "MyData.csv")

The above writes the data data frame MyData into a CSV that it creates called MyData.csv.To omit the row names, I add a comma and then row.names=FALSE. row.names=F 

# Write CSV in R
write.csv(MyData, file = "MyData.csv",row.names=FALSE)

Comment Here

Comments

No Comments to Show

WE ALWAYS WORK WITH :