Learn R Programming

StratigrapheR (version 0.0.2)

formFunction: Converts a formula into a function

Description

Converts a formula into a function

Usage

formFunction(formula)

Arguments

formula

the formula to be converted. Should be of the form y ~ f(x)

Examples

Run this code
# NOT RUN {
f <- formFunction(y ~ log10(x))

f(x=1:10)
# }

Run the code above in your browser using DataLab