Learn R Programming

ptvapi (version 2.0.5)

map_and_rbind: 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, ...)

Value

A data frame or tibble.

Arguments

.x

A list of data frames or tibbles.

.f

A function.

...

Additional arguments passed to the function.