list_collapse_dfr: List collapse

Description Usage Arguments Value

View source: R/sequence_methods.R

Description

Collapses named list of data.frame rowwise, assigning list names to the column named to.

Usage

1
list_collapse_dfr(data, to = Name, ptype = factor(), modifier = identity)

Arguments

data

List of data.frames.

to

Name of the column to where list names will go.

ptype

Casts names to the target type. By default, factor(); when NULL, perofrms no cast.

modifier

An rlang-style function/lambda that converts names. Can e.g. be used to parse names into numbers and than cast column to ptype type.

Value

A single data.frame.


Ilia-Kosenkov/RLibs documentation built on Jan. 26, 2020, 2:21 p.m.