Export data out of R and save in various formats such as csv, tab-delimited, space-delimited. For more Statistics and R Programming Tutorials: https://goo.gl/4vDQzT Dataset and R Script: https://goo.gl/tJj5XG
How to export data out of R and save in various formats such as csv, tab-delimited, space-delimited.
▶︎ In this R programming tutorial, you will learn to use “write.table”, “write.csv”, “write.csv2”, “write.command” and “write.delim” to export data out of R.
▶︎ In this tutorial, you will learn to use “sep” argument to specify the file format or separator for the values, “row.names” argument to include or exclude the row names.
You can access and download the dataset and R script here:
◼︎ Topics in the video:
0:00:34 Introducing the ‘write. table’ command for exporting data out of R.
0:00:39 How to access the help menu for a command in R
0:00:53 How to use the ‘write.table’ command in R Software
0:01:08 How to use “sep” argument to specify the file format or separator for the values in R
0:01:50 How to include or exclude the row names while exporting data out of R Programming software using ‘row.names’ argument
0:02:21 How to save file exported from R to a folder other than the current working directory:
0:03:01 How to use the “write.csv” command to export data from R (this will not require using “sep” argument as it is implied in the write.csv that we would like this to be saved as a comma separated value file)
0:03:22 a quick overview of “write.csv2” command that is used in Western Europe and would use a comma for a decimal point and a semicolon for a separator rather than a comma
0:03:33 How to use write.command in for saving in other file formats for example a tab delimited text file
This video is a tutorial for programming in R Statistical Software for beginners, using RStudio.
♠︎♣︎♥︎♦︎To learn more:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer: Ladan Hamadani (B.Sc., BA., MPH)
These #RTutorial are created by #marinstatslectures to support the statistics course (#SPPH400) at The University of British Columbia(UBC) although we make all videos available to the public for free.