R/utils.R

Defines functions merge_rows split_rows

split_rows <- function(x) {
  split(x, seq_len(nrow(x)))
}

merge_rows <- function(x) {
  tibble::as_tibble(do.call(rbind, x))
}

Try the profile package in your browser

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

profile documentation built on Aug. 22, 2022, 9:10 a.m.