excludeVar: Exclude Variable

View source: R/exclude.R

excludeVarR Documentation

Exclude Variable

Description

Remove a variable from the data set.

Usage

excludeVar(l, dataset, variable, true = TRUE)

Arguments

l

data dictionary list

dataset

name of data set

variable

name of variable to remove

true

The value to assign to ‘exclude’, assumed to be TRUE.

Value

updated data dictionary list

Examples

dd <- script2info(system.file("examples", "ex_script.R", package = "rcmoonpie"))
dd <- excludeVar(dd, 'data', 'redcap_event_name')
dd$dataset[[1]]$variables[[2]]$exclude


couthcommander/rcmoonpie documentation built on May 17, 2022, 12:35 a.m.