Description Usage Arguments Value Examples
Convert a formula into a function. See map and extract for examples.
| 1 2 | ## S3 method for class 'formula'
as.function(x, ...)
 | 
| x | (formula) see examples | 
| ... | not used | 
An object inheriting from class function.
| 1 2 3 4 5 | as.function(~ .)(1)
as.function(x ~ x)(1)
as.function(f(x, y) ~ c(x, y))(1, 2)
as.function(numeric : x ~ x)(1) # check for class
as.function(numeric(1) : x ~ x)(1) # check for class + length
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.