misc {polyreg} | R Documentation |
Miscellaneous
Description
Utilities
Usage
toFactors(df,cols)
Arguments
df |
A data frame. |
cols |
A vector of column numbers. |
Details
The toFactors
function converts each df
column in
cols
to a factor, returns new version of df
.
Should be used on categorical variables stored as integer codes
before calling the library's main functions,
including getPoly
, FSR
, or polyFit
.
[Package polyreg version 0.8.0 Index]