Description Usage Arguments Value Author(s) Examples
View source: R/convert_factor.r
Converts variables of a data frame in factors
1 | convert_factor(data, vars)
|
data |
the data frame in which we can find |
vars |
vector of character string of covariates |
The modified data frame
Hugo Varet
1 2 3 | cgd$steroids
cgd$status
cgd=convert_factor(cgd,c("steroids","status"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.