transpose_list

0th

Percentile

Transpose lists of lists

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().

Aliases
  • transpose_list
Examples
# NOT RUN {
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, ])
# }
Documentation reproduced from package mlr3misc, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.