问题
Coursetopics <-read.csv("Coursetopics.csv")
#remove first column
Coursetopics.mat <-as.matrix(Coursetopics[,-1])
#convert the binary incidence matrix into a transaction database
Coursetopics.trans<-as(Coursetopics.mat, "transactions")
inspect(Coursetopics.trans)
This is the code. My issue is getting the inspect
function to work properly Error reads as follows:
Error in inspect(Coursetopics.trans) : could not find function "inspect"
I have added arules
and tm
packages but no luck on getting rid of the error.
来源:https://stackoverflow.com/questions/61432544/the-inspect-function-not-found