R/utils_timeDF.R

Defines functions time_var time_vec

Documented in time_var time_vec

time_vec = function(timeDF){
    if(! is(timeDF, "timeDF")){
        stop("timeDF argument needs to be timeDF class object")
    }
    time_var = time_var(timeDF)
    return(timeDF[[time_var]])
}

time_var = function(timeDF){
    if(! is(timeDF, "timeDF")){
        stop("timeDF argument needs to be timeDF class object")
    }
    return(attr(timeDF, "time_var"))
}

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.