I've been trying to run LmFuncs with caret, but keep receiving the following error message -
Error in rfe.default(training[, -1], training[, 1], sizes = c(2, 3), rfeControl = control) :
there should be the same number of samples in x and y
I've looked through stackoverflow, github, and google groups - but none of the information on those forums seems to get around the error. My target variable is continuous, and the other variables are either numeric or continuous. I suspect there's a bug somewhere.
I'm fairly new to R, and this is the first bug report I've made - so please let me know if there were any instructions I failed to follow.
Hello,
I've been trying to run LmFuncs with caret, but keep receiving the following error message - Error in rfe.default(training[, -1], training[, 1], sizes = c(2, 3), rfeControl = control) : there should be the same number of samples in x and y
I've looked through stackoverflow, github, and google groups - but none of the information on those forums seems to get around the error. My target variable is continuous, and the other variables are either numeric or continuous. I suspect there's a bug somewhere.
I'm fairly new to R, and this is the first bug report I've made - so please let me know if there were any instructions I failed to follow.
Thanks, Sarah
Minimal dataset:
CEM <- structure(list(EBI_SUM = c(243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 355, 355, 355, 355, 355, 355, 355, 355, 355), WCS_19 = c(27, 78, 10, 75, 80, 22, 56, 85, 90, 85, 60, 81, 100, 100, 19, 50, 27, 78, 10, 75, 80, 22, 56, 85, 90)), row.names = c(NA, -25L), class = c("tbl_df", "tbl", "data.frame"))
Session Info: