View source: R/get-chms-meta.R
| get_chms_meta | R Documentation |
This function gets CHMS participant metadata.
get_chms_meta(
clinic_file,
agd_dir,
clinic_id = "CLINICID",
site = "SITE",
age = "CLC_AGE",
day = "V2_DAY",
month = "V2_MTH",
year = "V2_YEAR"
)
clinic_file |
Required: a length-one character vector representing the
full path to the clinic file. Note: a |
agd_dir |
Required: a character vector representing the full path(s) to the site directory ("full/path/to/data/site"). |
clinic_id |
Required (default: |
site |
Required (default: |
age |
Required (default: |
day |
Required (default: |
month |
Required (default: |
year |
Required (default: |
Returns a tibble with eight vectors (id, age, site, agd_lfe,
agd_nml, mec_visit_date, start_date, epoch_length).
# Create participant meta (statcan users)
meta <- get_chms_meta(
clinic_file = "path/to/clinic/file.sas7bdat",
agd_dir = "path/to/agd/files/site",
clinic_id = "CLINICID",
site = "SITE",
age = "CLC_AGE",
day = "V2_DAY",
month = "V2_MTH",
year = "V2_YEAR"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.