prep_load_folder_with_metadata {dataquieR}R Documentation

Pre-load a folder with named (usually more than) one table(s)

Description

These can thereafter be referred to by their names only. Such files are, e.g., spreadsheet-workbooks or RData-files.

Usage

prep_load_folder_with_metadata(folder, keep_types = FALSE, ...)

Arguments

folder

the folder name to load.

keep_types

logical keep types as possibly defined in the file. set TRUE for study data.

...

arguments passed to []

Details

Note, that this function in contrast to prep_get_data_frame does neither support selecting specific sheets/columns from a file.

Value

⁠invisible(the cache environment)⁠

See Also

prep_add_data_frames

prep_get_data_frame

Other data-frame-cache: prep_add_data_frames(), prep_get_data_frame(), prep_list_dataframes(), prep_load_workbook_like_file(), prep_purge_data_frame_cache()

Examples

## Not run: 
folder_name <-
  system.file("extdata", package = "dataquieR")
prep_load_folder_with_metadata(folder_name)
prep_get_data_frame(
  "dataframe_level") # dataframe_level is a sheet in the file

## End(Not run)

[Package dataquieR version 2.1.0 Index]