hongooi73 / glmnetUtils

Utilities for glmnet
65 stars 18 forks source link

"Invalid subscript type 'list'" - super short question #13

Closed Myrtle7 closed 7 years ago

Myrtle7 commented 7 years ago

Hello everyone!

I am trying to make an output that includes x: a dataset of 6 variables and y: one numeric variable. I don't understand what the problem is, since y is num

output = glmnet(x[train,], y[train], alpha = 1) Error in y[train] : invalid subscript type 'list'

hongooi73 commented 7 years ago

y may be numeric, but train looks to be a list. Also, this isn't related to glmnetUtils.