keep.relevant.variables: Keep relevant variables

Description Usage Arguments

View source: R/keep.relevant.variables.r

Description

This function takes as only input the study data data frame and keeps only those variables that are relevant to the study

Usage

1
2
keep.relevant.variables(study_data, data_dictionary = NULL,
  variables_to_keep = NULL, variables_to_drop = NULL)

Arguments

study_data

The study data as a data frame. No default

data_dictionary

The data dictionary. Defaults to NULL. If provided, variables_to_keep will be defined as unlist(lapply(data_dictionary, function(x) if(x$c == "No") x$vn))

variables_to_keep

Character vector of variables to keep. Defaults to NULL. Ignored if data_dictionary is not NULL.

variables_to_drop

Character vector of variables to drop. Defaults to NULL. Currently ignored.


itslwg/SupaLarna documentation built on Aug. 2, 2020, 1 a.m.