MEapply | R Documentation |
Apply a single function or a collection of functions to the data objects stored in a model environment.
## S4 method for signature 'ModelEnv'
MEapply(object, FUN, clone = TRUE, ...)
object |
Object of class |
FUN |
Function or list of functions. |
clone |
If |
... |
Passed on to |
data("iris")
me <- ModelEnvFormula(Species+Petal.Width~.-1, data=iris,
subset=sample(1:150, 10))
me1 <- MEapply(me, FUN=list(designMatrix=scale,
response=function(x) sapply(x, as.numeric)))
me@get("designMatrix")
me1@get("designMatrix")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.