Removes cases for a Random Forest classification model with missing data and predictors that are constant.
cleanRFdata(x, y, data, max.levels = 30)
a data.frame containing cleaned data.
columns used as predictor variables as character or numeric vector.
column used as response variable as character or numeric.
data.frame containing x
and y
columns.
maximum number of levels in response variable y
.
Eric Archer eric.archer@noaa.gov