t.list: Transpose a list-of-lists

Description Usage Arguments Details Author(s) References See Also

View source: R/tlist.R

Description

For a nested list x, returns another nested list y such that x[[a]][[b]] == y[[b]][[a]] for all indices in the original list.

Usage

1
2
## S3 method for class 'list'
t(x)

Arguments

x

a list of lists

Details

Occasionally, sparse matrices are represented this way.

Author(s)

zerweck, Neal Fultz

References

https://stackoverflow.com/questions/45734380/transpose-nested-list

See Also

transpose and transpose


stackoverflow documentation built on Jan. 10, 2020, 9:07 a.m.