knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Write something about
setwd
commands to be dropped because everything will be in the same directory. Maybe make a temp_vignette_results
directory so that this vignette writes output to, but make sure to clear that directory at the end of the vignette.$\;$
list(c(...), c(...),...)
, each vector being the spike trains of one trial/experiment.SpikeTrainFileName = 'data.LGN.txt' # For batch mode, this line is commented out because spike train file name is created before running this script trials.to.drop = c() spikes = dget(paste(SpikeTrainFileName,sep='')) for(i in 1:length(spikes)){ temp = spikes[[i]] temp = temp[temp>0] spikes[[i]] = temp if (length(spikes[[i]]) <= 5) trials.to.drop = c(trials.to.drop , i) } if(!is.null(trials.to.drop)) spikes=spikes[-trials.to.drop] length(spikes) #number of trains hist(unlist(lapply(spikes, length)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.