Answers for "r export to csv"

2

export csv in r

# to store in the current directory 
write.csv(data, "data.csv") 

# to store in a separate directory 
write.csv(data, "file_path\\data.csv")
Posted by: Guest on March-29-2021
3

write csv in r

df <- data.frame(name = c("Jon", "Bill", "Maria"),
                 age = c(23, 41, 32))

write.csv(df,"C:\\Users\\Ron\\Desktop\\MyData.csv", row.names = FALSE)
Posted by: Guest on December-10-2020
0

export csv file in r

write.csv(df,file='sample.csv',row.names=FALSE)
Posted by: Guest on September-11-2021

Browse Popular Code Answers by Language