View source: R/clean-perch-data.R
clean_perch_data | R Documentation |
clean_perch_data
transforms a raw data table (row for subjects, column
for variables - named as {pathogen name}_{specimen}{test}
for lab tests
or other covariates) into a list. It is designed for PERCH data format.
clean_perch_data(clean_options)
clean_options |
The list of options for cleaning PERCH data. Its elements are defined as follows:
. |
A List: list(Mobs,Y,X)
Mobs
A list of bronze- (MBS
), silver- (MSS
),
and gold-standard (MGS
, if available) measurements. See the formats
of these measurements in extract_data_raw()
.
Y
1 for case; 0 for control;
X
Data frame of covariates for cases and controls. The covariate
names are specified in X_extra
;
This function does not re-order pathogens that only have silver-standard data.
make_meas_object for wrapping information about a particular
type of measurement; extract_data_raw for reading raw data table
and organizing them into data_nplcm
format. Also see clean_combine_subsites
for combining subsites and parse_date_time for parsing date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.