read_parquet {nanoparquet} | R Documentation |
Converts the contents of the named Parquet file to a R data frame.
read_parquet(file, options = parquet_options())
file |
Path to a Parquet file. |
options |
Nanoparquet options, see |
A data.frame
with the file's contents.
See write_parquet()
to write Parquet files,
nanoparquet-types for the R <-> Parquet type mapping.
See parquet_info()
, for general information,
parquet_column_types()
and parquet_schema()
for information about the
columns, and parquet_metadata()
for the complete metadata.
file_name <- system.file("extdata/userdata1.parquet", package = "nanoparquet")
parquet_df <- nanoparquet::read_parquet(file_name)
print(str(parquet_df))