R/fillToLength.R

fillToLength <- function(X, period = 1800, ncol = 4) {
  rep(X, each = period) %>%
    matrix(ncol = ncol) %>%
    as.data.frame()
}
alphonse/aeRo documentation built on May 11, 2019, 11:21 p.m.