#' @import data.table
#' @export
channameSplitR <- function(x) {
nameparts <- tstrsplit(x, "_")
if (length(nameparts) < 6) {
nameparts <- append(nameparts, list(strftime(as.POSIXct(nameparts[[2]], format = "%H%M") + 3600, format = "%H%M")), 2)
}
if (length(nameparts) > 6) {
nameparts <- nameparts[-6]
}
return(nameparts)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.