Learn R Programming

StratigrapheR (version 1.3.1)

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
f <- formFunction(y ~ log10(x))

f(x=1:10)

Run the code above in your browser using DataLab