flaggroup: Flag group Listing

Description Usage Arguments Value Author(s)

View source: R/flaggroup.R

Description

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

Usage

1
flaggroup(prefix, suffix = "", data, flagind = "flag")

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.

flagind

(optional) An indicator to identify the flag variables (e.g. "flag").

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 flaggroup in sdap...