transpose_list: Transpose lists of lists

View source: R/transpose.R

transpose_listR Documentation

Transpose lists of lists

Description

Transposes a list of list, and turns it inside out, similar to the function transpose() in package purrr.

Usage

transpose_list(.l)

Arguments

.l

(list() of list()).

Value

list().

Examples

x = list(list(a = 2, b = 3), list(a = 5, b = 10))
str(x)
str(transpose_list(x))

# list of data frame rows:
transpose_list(iris[1:2, ])

mlr3misc documentation built on Sept. 20, 2023, 5:06 p.m.