makeBinVar: makeBinVar

Description Usage Arguments

Description

This function will create a single binary variables to indicate the presence or absence of a each element of a user-defined vector of n strings, where the string of interest may appear in one or more data.frame columns.

Usage

1
makeBinVar(x, y, df)

Arguments

x

A character vector of the codes of interest

y

Either a character vector reflecting the names of df columns to look through for x, or a numeric vector of column indices

df

A dataframe containing individual claims-level data. "newBinVars" will be applied as default unless another string is given.


etesdahl/claimWranglR documentation built on May 16, 2019, 8:55 a.m.