R/workaround.R

Defines functions call_and_name_retro

# assertive.base 0.0-6 introduced a stupid bug in call_and_name
# because is.double(POSIXct) unexpectedly returns TRUE
# override until this can be fixed in 0.0-7
call_and_name_retro <- function(fn, x, ...)
{
  y <- fn(x, ...)
  dim(y) <- dim(x)
  names(y) <- as.character(x)
  y
}

Try the assertive.datetimes package in your browser

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

assertive.datetimes documentation built on July 31, 2020, 1:06 a.m.