R/01_naive.R

Defines functions is.naive format.mt_naive naive

# A naive time granule property inherits from specified properties
naive <- function(x = NA) structure(x, class = "mt_naive")

#' @exportS3Method base::format mt_naive
format.mt_naive <- function(x, ...) {
  paste0("naive [", NextMethod(), "]")
}

is.naive <- function(x) {
  vapply(x, inherits, logical(1L), "mt_naive")
}

Try the mixtime package in your browser

Any scripts or data that you put into this service are public.

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