![]() ![]() The type of file you have will tell you which function to use next. Get it by installing either the package tidyverse or the package haven on its own. Working with Stata, SAS or SPSS data? The package haven can help you read DTA, SAS7BDAT, and SAV files. dat <- read_excel('file_path/file_name.xls')ĭat <- read_excel('file_path/file_name.xlsx') Read files from other statistical packages You can point read_excel to your Excel-formatted data. Regardless of which package you install, you’ll need to load readxl separately. You can get this function as part of the package tidyverse or from the stand-alone package readxl. ![]() Bring these spreadsheets into R using the function read_excel. Microsoft’s industry-standard spreadsheet software prefers to save files in. How will you get those data into R?įortunately, other programmers have faced this issue and developed R packages that let you read data saved in various proprietary formats. Let’s explore several popular options. You downloaded data files from the US government or some other organization that depends on proprietary spreadsheet software or statistical packages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |