powered by
Converts Temporal Category data from a set of onset-offset times and ratings to an vector of ratings.
convert.tcategory(X, in.scores, times, decimal.places = 2)
out.vec indictor vector(0s and 1s)
0
1
matrix with onset (start) times in first column and offset (stop) times in second column
vector of category values corresponding to rows of X
X
time slices for output vector
decimal places used in times; used for naming of the indices of out.vec
times
out.vec
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
Run the code above in your browser using DataLab