read_all_sas | R Documentation |
.sas7bdat
files in a directoryRead all .sas7bdat
files in a directory. Formats can be applied from a procformat.sas
SAS file, from a .
read_all_sas(
path,
...,
format_file = "procformat.sas",
clean_names_fun = NULL,
datetime_extraction = "guess",
verbose = getOption("edc_read_verbose", 1)
)
path |
[ |
... |
unused |
format_file |
[ |
clean_names_fun |
[ |
datetime_extraction |
[ |
verbose |
[ |
a list containing one dataframe for each .xpt
file in the folder, the extraction date (datetime_extraction
), and a summary of all imported tables (.lookup
).
format_file
should contain the information about SAS formats. It can be either
a procformat.sas
file, containing the whole PROC FORMAT
a catalog file (.sas7bcat
)
or a data file (.csv
or .sas7bdat
) containing 3 columns: the SAS format name (repeated),
each level, and its associated label. Use options(edc_var_format_name="xxx", edc_var_level="xxx", edc_var_label="xxx")
to specify the names of the columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.