survey_variables_like: Get list of variable names matching the given pattern (glob...

View source: R/survey.r

survey_variables_likeR Documentation

Get list of variable names matching the given pattern (glob style)

Description

These labels are defined in the survey by platform_define_survey in the platform file

Usage

survey_variables_like(survey, pattern)

survey_questions_like(survey, pattern)

Arguments

survey

survey name

pattern

glob style pattern (ex "visit.*")

Value

character vector of questions variable names

See Also

Other survey: SurveyLabeller, survey_aliases(), survey_definition(), survey_labeller(), survey_labels(), survey_recode(), survey_recodings(), survey_rename_columns(), survey_variable_recoding()

Examples

## Not run: 
 survey_questions_like("weekly", "visit.*") # All variables starting with visit.*

## End(Not run)

cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.