Read a data file into R
Details
This function can be used to read the following data file types: csv, rds, xlsx.
The function works by downloading the file from Objective Connect to a
temporary file and reading it into R. The following functions are used to
read the data and any additional arguments (...
) will be passed to these.
File Type | Function |
csv | readr::read_csv() |
rds | readr::read_rds() |
xlsx | readxl::read_xlsx() |
To check what file type your document is (and thus what function additional
arguments will be passed to), use asset_info()
.
If there are other data file types you would like to download using this function, please open an issue on the GitHub repository.