convert.tcata: Convert TCATA data

Description Usage Arguments Value Examples

View source: R/tcata.R

Description

Converts TCATA data from a set of onset-offset times to an indicator vector (0s and 1s). Also works for TDS data.

Usage

1
convert.tcata(X, times, decimal.places = 2)

Arguments

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 times; used for naming of the indices of out.vec

Value

out.vec indictor vector(0s and 1s)

Examples

1
2
3
4
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

tempR documentation built on May 19, 2017, 12:16 p.m.

Search within the tempR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.