R/split.R

Defines functions split

Documented in split

split <- function(data, by, drop = FALSE, keep.by = TRUE) {
  if (!is.data.frame(data)) {
    return(base::split(x = data, f = by, drop = drop))
  }
  bt_split_by(data, by = by, drop = drop, keepby = keep.by)
}

Try the basetable package in your browser

Any scripts or data that you put into this service are public.

basetable documentation built on Sept. 18, 2026, 9:13 a.m.