withinfunc | R Documentation |
Same as within, but the expr executed is a function. Unlike within, the func will be executed within data. Functions will read variables from data, and if <<- is used then values will be assigned in data IF the variable already exists in data.
withinfunc(data, func, ...)
data |
data to use for constructing an environment. Can be a list or a data frame. |
func |
function to evaluate in data |
... |
arguments to pass to func |
data modified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.