Loading Data Files in R
Last updated
Was this helpful?
Last updated
Was this helpful?
R can load the following data files formats:
Compressed CSV (.csv.gz
)
Parquet (.parquet
)
Download and save the data files to a suitable location. In the examples that follow, the data has been saved to C:\data
.
You can use the below steps as a guide on how you can load compressed (Gzip) data files in R.
Reading the entire compressed (Gzip) CSV data file directly into a data frame.
You can use the below steps as a guide on how you can load Parquet data files in R.
Install the arrow
package.
Import the arrow
library.
Read the Parquet data file into a data frame.
Read a subset of the columns from the Parquet data file into a data frame.
Guidance on how to analyse data in R is beyond the scope of this documentation.
You may find the following helpful: