df <- data.frame(name = c("Jon", "Bill", "Maria"),
age = c(23, 41, 32))
write.csv(df,"C:UsersRonDesktopMyData.csv", row.names = FALSE)
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)