myldply: A 'dplyr'-friendly equivalent to the old 'plyr::ldply()'

View source: R/util.R

myldplyR Documentation

A 'dplyr'-friendly equivalent to the old 'plyr::ldply()'

Description

A 'dplyr'-friendly equivalent to the old 'plyr::ldply()'

Usage

myldply(ll, fn, ..., .id = NULL)

Arguments

ll

a list of objects to which to apply a function

fn

the function to apply

...

extra arguments passed to fn

.id

if not NULL, name of column to use for group IDs (inferred from attr(ll, "names"))

Details

Hard work of combining results is done under the hood by dplyr::bind_rows(); consult that function's documentation to see how incomplete rows, missing columns, conflicting data types, etc. are handled.

Value

a tibble with concatenated results of applying fn() to each element of ll


andrewparkermorgan/popcorn documentation built on July 8, 2023, 12:42 p.m.