R/rbind.R

Defines functions rbind.incidence2

#' @export
rbind.incidence2 <- function(..., deparse.level = 1) {
    dat <- list(...)
    first <- dat[[1L]]
    compatible <- vapply(dat, inherits, TRUE, what = "data.frame")
    if (!all(compatible))
        stop("Incompatible inputs")
    dat <- lapply(dat, as.data.frame)
    out <- do.call(rbind, dat)
    .incidence_reconstruct(out, first)
}

Try the incidence2 package in your browser

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

incidence2 documentation built on Sept. 11, 2024, 7:46 p.m.