t.listR Documentation

Transpose a list-of-lists

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

## 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