我正在尝试为蘑菇数据构建一个简单的Naive Bayes分类器。我想用所有的变量作为分类预测因子来预测蘑菇是否可食用。
我正在使用插入符号包。
这是我的完整代码:
##################################################################################
# Prepare R and R Studio environment
##################################################################################
# Clear the R studio console
cat("