#'
#'
source.channeledEvents <- function(evData, samplingRate){
# split evData to event blocks
# find edges
ev <- diff(evData)
pos <- which(ev!=0)
blocks <- lapply(pos, function(t){
ret <- evData[[t+1]]
attr(ret, 'TS') <- (t+1)*1E9/samplingRate
ret
})
SI(blocks) <- SI.event()
blocks
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.