class_mixtime: Base S7 class for mixtime vector objects

class_mixtimeR Documentation

Base S7 class for mixtime vector objects

Description

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.

Details

When called as a constructor, its arguments are passed to the vecvec::class_vecvec() constructor:

  • x: A list of "mt_time" vectors, see mt_linear() for details.

  • i: A vector of integers specifying the location of each element in x as if they were combined in order. Defaults to a sequence from 1 to the total number of elements across all vectors in x.

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.


mixtime documentation built on Nov. 18, 2026, 5:08 p.m.