Learn R Programming

RItools (version 0.3-3)

identify_NM_vars: Identify vars recording not-missing (NM) info

Description

ID variables recording NM information, from names and positions in the variable list. Presumption is that the NM cols appear at the end of the list of vars and are encased in ‘()’. If something in the code changes to make this assumption untrue, then this helper is designed to err on the side of not identifying other columns as NM cols.

Usage

identify_NM_vars(vnames)

Value

character vector of names of NM vars, possibly of length 0

Arguments

vnames

character, variable names

Author

Hansen