![]() getwd() will print out the current directory.setwd(“…”) will set the current working directory to a specific location.See below for instructions on how to read and load data into R from both file extensions.īefore reading any data, you must set the R working directory to the location of the data. Rdata is used to save multiple R objects, while Rds is used to save a single R object. These formats are used when R objects are saved for later use. R also has two native data formats-Rdata (sometimes shortened to Rda) and Rds. Whether the data was prepared using Excel (in CSV, XLSX, or TXT format), SAS, Stata, SPSS, or others, R can read and load the data into memory. R is capable of reading data from most formats, including files created in other statistical packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |