Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

A factor has new levels

This occurs when the training dataset does not contain examples of all of the levels of particular factor and the testing set contains examples of these other levels.

To remove unused levels from a factor:

> dataset$Target <- dataset$Target[,drop=TRUE]



Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010