vargroup: Variable Group Listing

Description Usage Arguments Value Author(s)

View source: R/vargroup.R

Description

Creates a vector containing the column numbers in a dataset for a variable group. The variable group is provided in the form of a prefix (e.g. "statusinemployment") and a suffix (e.g. 1:10), building a variable list to be checked against the variable names in the dataset.

Usage

1
vargroup(prefix, suffix, data)

Arguments

prefix

(mandatory) A base variable name which is part of a variable group.

suffix

(mandatory) Vector of the suffixes considered.

data

(mandatory) A dataframe containing the variables and observations to be analyzed.

Value

Column numbers of variable group within the dataset.

Author(s)

Beat Hulliger, Juan Berdugo


sdap documentation built on May 2, 2019, 6:52 p.m.

Related to vargroup in sdap...