convert.tcategory {tempR} | R Documentation |
Convert Temporal Category data
Description
Converts Temporal Category data from a set of onset-offset times and ratings to an vector of ratings.
Usage
convert.tcategory(X, in.scores, times, decimal.places = 2)
Arguments
X |
matrix with onset (start) times in first column and offset (stop) times in second column |
in.scores |
vector of category values corresponding to rows of |
times |
time slices for output vector |
decimal.places |
decimal places used in |
Value
out.vec indictor vector(0
s and 1
s)
Examples
X <- rbind(c(3.18, 6.83), c(8.46, 11.09), c(18.61, 21.80))
in.scores <- c(7, 6, 5)
times <- seq(0, 25, by = 0.01)
Xnew <- convert.tcategory(X, in.scores, times)
Xnew
[Package tempR version 0.10.1.1 Index]