powered by
formula
x
y
glmnet
model_as_xy(data, formula)
model.matrix
model_as_xy(mtcars, hp ~ mpg) model_as_xy(mtcars, hp ~ .) model_as_xy(mtcars, hp ~ mpg * hp) model_as_xy(mtcars, ~ .)
Run the code above in your browser using DataLab