qts_sample | R Documentation |
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.
as_qts_sample(x)
is_qts_sample(x)
## S3 method for class 'qts_sample'
x[i, simplify = FALSE]
x |
A list of |
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 |
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.
An object of class qts_sample
.
x <- vespa64$igp
y <- as_qts_sample(x)
is_qts_sample(x)
is_qts_sample(y)
x[1]
x[1, simplify = TRUE]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.