"predict"(object = NULL, data.test = NULL, ...)
# Create an FFTrees object from 200 cases from thethe breastcancer dataset
breastcancer.fft <- FFTrees(formula = diagnosis ~.,
data = breastcancer[1:300,])
# Currently the object only contains training data
breastcancer.fft
# Now add the rest of the dataset as test data using predict
#
breastcancer.fft <- predict(breastcancer.fft,
data.test = breastcancer[301:nrow(breastcancer),])
# Now the new data are stored as test data
breastcancer.fft
Run the code above in your browser using DataLab