# Perform unsupervised learning on the Cars93 data set.
# Load data.
data(Cars93, package="MASS")
# Create second synthetic class for unsupervised learning.
newdata <- generateSyntheticClass(Cars93)
# Select variables with which to train model.
vars <- c(4:22)
# Run model, grow 30 trees.
forest <- bigrfc(newdata$x, newdata$y, ntree=30L, varselect=vars,
cachepath=NULL)
Run the code above in your browser using DataLab