R trying to get caret / rfe to work

前端 未结 2 1535

I have a data set that I\'m trying to use rfe() from the caret package in R on.

x is the prices I\'m trying to predict.

y is the va

2条回答
  •  温柔的废话
    2020-12-19 15:15

    It should be factor and vector:

    as.factor(noquote(as.vector(t(df[,14])))) 
    

    In my case column 14 is a class in df.

提交回复
热议问题