powered by
Extract respone vector and design matrix from data with given formula.
makeXY(.formula, .data)
(formula)
(data.frame) data from which design matrix and response to extract from
set.seed(1) makeXY(y ~ I(x^2), data.frame(x = rnorm(10), y = rnorm(10)))
Run the code above in your browser using DataLab