KeepRelevantVariables: Keep relevant variables

Description Usage Arguments

View source: R/KeepRelevantVariables.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
KeepRelevantVariables(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.


citronmeliss/predictionpackr documentation built on Feb. 10, 2020, 12:19 a.m.