Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

t.list

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

See Also


stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.