convert_factor {packHV} | R Documentation |
Convert variables of a data frame in factors
Description
Converts variables of a data frame in factors
Usage
convert_factor(data, vars)
Arguments
data |
the data frame in which we can find |
vars |
vector of character string of covariates |
Value
The modified data frame
Author(s)
Hugo Varet
Examples
cgd$steroids
cgd$status
cgd=convert_factor(cgd,c("steroids","status"))
[Package packHV version 2.2 Index]