R/___unused_make_proto_from_xy.R

Defines functions make_proto_from_xy

make_proto_from_xy <- function(x, y, Stimulus, Times = 1:ncol(y)) {
    data(st)
    rd <- proto(st)
    rd$sweeps$y <- as.matrix(y)
    rd$sweeps$x <- as.matrix(x)
    rd$sweeps$Stimulus <- Stimulus
    rd$sweeps$Trace_Time <- Times
    return(rd)
}
tdanker/ephys2 documentation built on Aug. 11, 2019, 12:12 p.m.