Description Usage Arguments Details See Also Examples
Infer attributes such as variable types of a longitudinal growth study and add as attributes to the dataset.
1 | get_data_attributes(dat, meta = NULL, study_meta = NULL)
|
dat |
a longitudinal growth study dataset |
meta |
a data frame of meta data about the variables (a row for each variable) |
study_meta |
a single-row data frame or named list of meta data about the study (such as study description, etc.) |
attributes added:
- subjectlevel_vars
: vector of names of subject-level variables
- longi_vars
: vector of names of time-varying variables
- time_vars
: vector of names of measures of age
- var_summ
: data frame containing variable summaries with columns variable
, label
, type
[subject id, time indicator, time-varying, constant], n_unique
- subj_count
: data frame of counts of records for each subject with columns subjid
, n
- n_subj
: scalar containing total number of subjects
- labels
named list of variable labels - either populated by matching names with a pre-set list of labels (see hbgd_labels
) or from a list provided from the meta
argument
- study_meta
: data frame of meta data (if provided from the study_meta
argument)
- short_id
: scalar containing the short unique identifier for the study (if study_meta
is provided)
1 2 | cpp <- get_data_attributes(cpp)
str(attributes(cpp))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.