A collection of functions that implements the QTS sample class. It currently
provides the as_qts_sample() function for QTS sample coercion of lists of
qts objects, the is_qts_sample() function for checking if an object
is a QTS sample and the subset operator.
Usage
as_qts_sample(x)
is_qts_sample(x)
# S3 method for qts_sample
[(x, i, simplify = FALSE)
Value
An object of class qts_sample.
Arguments
x
A list of tibble::tibbles, each of which with columns
time, w, x, y and z.
i
A valid expression to subset observations from a QTS sample.
simplify
A boolean value specifying whether the resulting subset
should be turned into a single QTS in case the subset is of size 1.
Defaults to FALSE.
Details
A QTS sample is a collection of quaternion time series (QTS), each of which
is stored as a tibble::tibble with 5 columns:
time: A first column specifying the time points at which quaternions were
collected;
w: A second column specifying the first coordinate of the collected
quaternions;
x: A third column specifying the second coordinate of the collected
quaternions;
y: A fourth column specifying the third coordinate of the collected
quaternions;
z: A fifth column specifying the fourth coordinate of the collected
quaternions.