pipe.transform.windowsToEvents <- function(input, transform){
processor(
input,
prepare = function(env){
SI.is.window(input) || stop("Input must be window")
SI.event()
},
online = function(input){
lapply(input, function(x){
y <- transform(x)
attr(y, 'TS') <- attr(x, 'TS')
y
})
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.