R/confirm_time_object.R

Defines functions confirm_time_object

confirm_time_object = function(obj){
    if(! is(obj, "POSIXlt") && ! is(obj, "POSIXct")){
        stop("column for time needs to be POSIXlt or POSIXct")
    }
}

Try the timeDF package in your browser

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

timeDF documentation built on May 29, 2024, 5:12 a.m.