Nothing
#' @importFrom dplyr group_data
group_labels <- function(data) {
dplyr::select(group_data(data), -".rows")
}
group_sizes <- function(data) {
lengths(group_data(data)$.rows)
}
subset_slices <- function(data, keep_groups = FALSE) {
if (!dplyr::is_grouped_df(data)) {
return(list(data))
}
cols <- setdiff(names(data), dplyr::group_vars(data))
indices <- group_data(data)$.rows
lapply(indices, function(x) data[x, cols])
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.