Answers for "write dataframe as csv file into R"

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
3

how to save a dataframe into an csv file

df.to_csv('file_name.csv', index=False)
Posted by: Guest on September-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language