简体   繁体   中英

How to save a CSV file?

I have tried to save a file in R as .csv but when I run the below function it saves it as a FILE instead of a .csv . What am I doing wrong?

The dataframe is massive with over 4M cells.

write.csv(New_trips_2021, "C:\\x\\x\\x\\Google_Data_Analytics_Project\\Cyclistic_Integrated_V2", row.names = FALSE)

when saving a csv file you need to specify the extension .csv too in the write.csv function.

try this:

write.csv(New_trips_2021, "C:\\x\\x\\x\\Google_Data_Analytics_Project\\Cyclistic_Integrated_V2.csv", row.names = FALSE)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM