rbindToDataFrame: Row bind elements 1:1 to a data frame

rbindToDataFrameR Documentation

Row bind elements 1:1 to a data frame

Description

Row bind elements 1:1 to a data frame

Usage

rbindToDataFrame(x, ...)

## S4 method for signature 'list'
rbindToDataFrame(x)

Arguments

x

Object.

...

Additional arguments.

Value

DataFrame.

Note

Updated 2023-02-22.

See Also

  • data.table::rbindlist.

  • purrr::list_transpose.

Examples

x <- list(
    "a" = list(
        "aa" = seq(from = 1L, to = 3L),
        "bb" = seq(from = 4L, to = 6L)
    ),
    "b" = list(
        "cc" = seq(from = 7L, to = 9L),
        "dd" = seq(from = 10L, to = 12L)
    ),
    "c" = list(
        "ee" = seq(from = 13L, to = 15L),
        "ff" = seq(from = 16L, to = 18L)
    )
)
print(x)
y <- rbindToDataFrame(x)
print(y)

acidgenomics/AcidPlyr documentation built on April 12, 2025, 11:37 a.m.