fillToLength <- function(X, period = 1800, ncol = 4) {
rep(X, each = period) %>%
matrix(ncol = ncol) %>%
as.data.frame()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.