non_package_files/Examples___/overview_get_cursorresults.R

# overview on methods for getting cursor results
rm(list=ls())
tree<-get_treeinfo(examplefile("herg"))
ser<-getSeries(tree,1,1,1)
set_cursor("hERG", "c1", curMax_, c(1,2))
set_eventcursor(ser,1,"ev.",curMax_, c(.3,.4))
r1 <- ser$results()    #proto of series
r2 <- ser$results_()   #proto of series
r3 <- get_all(tree, "hERG");r3    #both ev and global  # aditional first cloumn "id"

all.equal(names(r1),  names(r3)[-1]) 

calculate.results(tree, c(1,1,1)) #how to make the selection?      ==>chenged in branch



get_eventresults(tree, "hERG") #error if no eventscursors set -different format

library(mvbutils)
library(ephys2)
foodweb(where = "package:ephys2", prune=c("calcul", "~getSeries"), ancestors = T, descendents = T, cex=.8)
foodweb(where = "package:ephys2", prune=c("results"), ancestors = F, descendents = T)
tdanker/ephys2 documentation built on Aug. 11, 2019, 12:12 p.m.