powered by
A collection of functions that implements the QTS class. It currently provides the as_qts() function for QTS coercion of tibble::tibbles and the is_qts() function for checking if an object is a QTS.
as_qts()
tibble::tibble
is_qts()
as_qts(x)is_qts(x)# S3 method for qts format(x, digits = 5, ...)# S3 method for qts print(x, ...)
is_qts(x)
# S3 method for qts format(x, digits = 5, ...)
# S3 method for qts print(x, ...)
An object of class qts.
A tibble::tibble with columns time, w, x, y and z.
time
w
x
y
z
An integer value specifying the number of digits to keep for printing. Defaults to 5L.
5L
Further arguments passed to or from other methods.
A quaternion time series (QTS) 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.
qts1 <- vespa64$igp[[1]] qts2 <- as_qts(qts1) is_qts(qts1) is_qts(qts2)
Run the code above in your browser using DataLab