Helper function: import .rds files from folder
Usage
import_rds(
rds_dir,
flatten = TRUE,
cols_unnest = "satellite_data_metadata",
drop_cols = TRUE,
run_parallel = TRUE,
n_cores = parallel::detectCores() - 1L,
debug = TRUE
)
Arguments
- rds_dir
path to directoy containing .rds files
- flatten
should imported results be flattened (default: TRUE)
- cols_unnest
vector with names of columns to unnest (default: "satellite_data_metadata"), only used if flatten == TRUE
- drop_cols
should columns not used for unnesting be dropped (refers to the columns: "satellite_data_metadata", "satellite_data", "satellite_metadata"), default: TRUE
- run_parallel
should multiple cores (if available) be used for import? (default: TRUE)
- n_cores
number of cores to use if
run_parallel = TRUE
. Default: one less than the detected number of cores.- debug
print debug messages? (default: TRUE)