#' Generate a grouping factor
#'
#' Use this internal function to define grouping factor for `split()` call.
#'
#' Use `[` subsetting to request specific columns.
#'
#' @noRd
#' @note Updated 2019-09-01.
.group <- function(x) {
f <- apply(
X = as.data.frame(x),
MARGIN = 1L,
FUN = paste,
collapse = "."
)
f <- make.names(f, unique = FALSE)
f <- as.factor(f)
f
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.