map_and_rbind: Map and rbind a list of data frames

View source: R/helper-functions.R

map_and_rbindR Documentation

Map and rbind a list of data frames

Description

This function is a simple combination of purrr::map and purrr::reduce using rbind. This differs from purrr::map_dfr, which uses dplyr::map_dfr and therefore introduces dplyr as a dependency. If the provided list is empty, then an empty tibble will be returned.

Usage

map_and_rbind(.x, .f, ...)

Arguments

.x

A list of data frames or tibbles.

.f

A function.

...

Additional arguments passed to the function.

Value

A data frame or tibble.


ptvapi documentation built on May 29, 2024, 4:48 a.m.