# to store in the current directory
write.csv(data, "data.csv")
# to store in a separate directory
write.csv(data, "file_pathdata.csv")
read.csv("yourdata.csv", sep = ';')
write.table(df, file = paste("myName.csv"),sep=",", row.names = FALSE)
# row.names = FALSE removes the index of the rows
write.csv(df,file='sample.csv',row.names=FALSE)