convert.tcata | R Documentation |
Converts TCATA data from a set of onset-offset times to an indicator vector (0
s and 1
s). Also works for TDS data.
convert.tcata(X, times, decimal.places = 2)
X |
matrix with onset (start) times in first column and offset (stop) times in second column |
times |
time slices for output indicator vector |
decimal.places |
decimal places used in |
out.vec indictor vector(0
s and 1
s)
X <- rbind(c(3.18, 6.83), c(8.46, 11.09), c(18.61, 21.80))
times <- seq(0, 25, by = 0.01)
Xnew <- convert.tcata(X, times)
Xnew
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.