Answers for "export csv file in r"

R
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
2

write to csv in r

write.table(df, file = paste("myName.csv"),sep=",", row.names = FALSE)

# row.names = FALSE removes the index of the rows
Posted by: Guest on November-26-2020
0

how to import csv file in r

read.csv("yourdata.csv", sep = ';')
Posted by: Guest on April-26-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