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.
1 | makeBinVar(x, y, df)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.