Question: I need to construct a confusion matrix in R . Tried a lot of options and still having an errorError in [ . data.frame

I need to construct a confusion matrix in R. Tried a lot of options and still having an errorError in "[.data.frame" (heart_data, c("age", "talach", "cp", "trestbps")): undefined columns selected
Traceback:
heart_data[c("age", "talach", "cp", "trestbps")]
'[.data.frame" (heart_data, c("age", "talach", "cp", "trestbps"))
stop("undefined columns selected")
 I need to construct a confusion matrix in R. Tried a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!