Export Data Using R Studio
Export Data Using R Studio
using
R Studio
Rupak Roy
R Import Functions: write.table()
Just like import, R also comes with rich features to export the processed data.
1. ?write.table: prints data frame into a wider range of file formats,
including tab-delimited files.
Rupak Roy
R Import Functions: writeLines()
3. ?writeLines: writes text line to a file i.e. prints the entire row as one line
>writeLines(X, file=“ ”, sep = “,")
Where x = R object to be written, example: product$reviews_column
file = “filename” character string value to used to save the file
sep = “,” character string to be written to the connection after each
line of text.
Rupak Roy
write.table()
>write.table(bike_sharing_program,file = "bikesharingprogramtable.csv",sep =
",",col.names = T,na="NA")
Next:
We will see how to perform import and export in the lab
session.
Rupak Roy