as.function.formula {gsubfn} | R Documentation |
Create a function from a formula.
## S3 method for class 'formula': as.function(x, ...)
x |
Formula with no left side. |
... |
Currently not used. |
A function is returned whose formal arguments are the free variables in the formula in the order encountered, whose body is the expression on the right side of the formula and whose environment is the environment of the formula.
as.formula(~ as.numeric(x) + as.numeric(y))