get_data_attributes: Infer and attach attributes to a longitudinal growth study...

Description Usage Arguments Details See Also Examples

View source: R/process.R

Description

Infer attributes such as variable types of a longitudinal growth study and add as attributes to the dataset.

Usage

1
get_data_attributes(dat, meta = NULL, study_meta = NULL)

Arguments

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.)

Details

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)

See Also

get_data_attributes

Examples

1
2

hafen/hbgd documentation built on March 1, 2020, 5:31 p.m.