Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我在 R 中使用 rpart 函数,它将分类树拟合到数据集。然后如何使用这棵树对新对象进行分类?
?predict.rpart # ................
可能(仅在没有 R 对象的情况下猜测。)
predict(rtree, type = "class")