Data Science with R Naive Bayes Clasification
The required packages for this chapter include:
- library(rattle) # weather and normVarNames()
- library(randomForest) # na.roughfix()
- library(e1071) # naiveBayes()
- library(ROCR) # prediction()
As we work through this chapter, new R commands will be introduced. Be sure to review the command’s documentation and understand what the command does. You can ask for help using
the ? command as in:
?read.csv
We can obtain documentation on a particular package using the help= option of library():
library(help=rattle)
This chapter is intended to be hands on. To learn effectively, you are encouraged to have R running (e.g., RStudio) and to run all the commands as they appear here. Check that you get the same output, and you understand the output. Try some variations.