This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ddir <- '~/data/bartc' # data directory | |
| load(file=paste(ddir, 'fitdata', sep='/')) | |
| extractfun <- function(x) { | |
| outs <- c(x$baseline, x$effects) | |
| names(outs)[1] = 'baseline' | |
| return (outs) | |
| } | |
| dat <- as.data.frame(t(sapply(fitobjs, FUN=extractfun, simplify=TRUE))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select count(*), var, unit, sum(start - stop) | |
| from ( | |
| select movie, montime, mofftime | |
| from (spikes, showings | |
| where spikes.time > ontime and spikes.time < offtime) | |
| join etho on movie ) | |
| group by etho.var, unit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| [ | |
| { "keys": ["ctrl+enter"], "command": "repl_transfer_current", "args": {"scope": "lines"}}, | |
| { "keys": ["ctrl+shift+enter"], "command": "repl_transfer_current", "args": {"scope": "selection"}} | |
| ] |
NewerOlder