Description Usage Arguments Details Value Author(s) See Also Examples
Take a data.frame and convert any columns consisting of only 0's and 1's (binary) values, to a factor variable, to ease calculation and interpreations of subsequent analysis.
1 | convert.bin.fac(x, ignore.missing = FALSE)
|
x |
a data frame of patient characteristics from a study. |
ignore.missing |
a scalar logical indicating on how to deal with missing data. When true, the function will convert any column with 0's/1's/NA's into a factor, when false (default), NA's will prevent conversion. |
This function convert any columns consisting of only 0's and 1's (binary) values, to a factor variable, to ease calculation and interpreations of subsequent analysis.
the same data.frame with updated columns
Jesse D. Raffa
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.