class_mixtime is the base S7 class for all mixtime vector objects,
inheriting from vecvec::class_vecvec. While not intended to be used
directly, this S7 class is suitable to use when defining S7 methods for
mixtime vectors. S3 methods can be defined using the mixtime::mixtime
class.
Arguments
- x
A list of
"mt_time"vectors, seenew_time()for details.- i
A vector of integers specifying the location of each element in
xas if they were combined in order. The values inimust be between 1 and the total number of elements across all vectors inx, and can contain duplicates. If not provided, it defaults to a sequence from 1 to the total number of elements across all vectors inx.
Value
When used as a class definition (e.g., in S7::method(generic, class_mixtime)), an S7 class object representing the mixtime class,
inheriting from vecvec::class_vecvec. When called as a constructor
(class_mixtime(list(...))), a mixtime vector of S7 class mixtime
(also inheriting the S3 class "mixtime"), containing the supplied list
of time vectors as a vecvec::class_vecvec structure. End users should
prefer mixtime() or new_mixtime() for construction.
See also
mixtime() for creating mixtime vectors, and new_mixtime() for
the low-level constructor function of this S7 class.