layerfunctions | R Documentation |
An S4 class for functions that operate on layers or their parameters
## S4 method for signature 'layerfunction' initialize( .Object, fun = function(x) { x }, returnLayer = TRUE, frames = integerSet() ) layerfunction(...) runLayerFunction(input, inputFun, classes, frameNumber)
action.layer, action.data, etc... are convenient ways to add layerfunctions to layers.
fun
the name of a function or an function.
returnLayer
logical. If TRUE the function in fun accepts and returns layer objects. If FALSE it accepts parameters like a normal R function and returns a named list of parameters.
frames
an integerSet object. Controls on which frames the function runs. The default behaviour is that it runs on all frames.
print(1+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.