R/fBTi.R

Defines functions fBTi intervalo

Documented in fBTi

intervalo <- function(day, sample){
    intervalo <- seq.POSIXt(from = as.POSIXct(paste(day, '00:00:00'), tz = 'UTC'),
                      to = as.POSIXct(paste(day, '23:59:59'), tz = 'UTC'),
                      by = sample)
    return(intervalo)
}

fBTi <- function(BTd, sample = 'hour'){
    BTi <- lapply(BTd, intervalo, sample)
    BTi <- do.call(c, BTi)
    return(BTi)
}

Try the solaR2 package in your browser

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

solaR2 documentation built on April 3, 2025, 6:11 p.m.