R/split_int_.R

Defines functions split_int_

split_int_ <- function(data, f) {
  nr <- .row_names_info(data, type = 2L)
  f_ <- .formula2varlist(formula = f, data = data) # see ?base::split.data.frame
  rid <- split.default(x = seq_len(nr), f = f_)
  return(rid[lengths(rid, use.names = FALSE) > 0L])
}

Try the ThomasJeffersonUniv package in your browser

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

ThomasJeffersonUniv documentation built on July 3, 2024, 5:08 p.m.