Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transpose of a list #1025

Closed
arunsrinivasan opened this issue Jan 27, 2015 · 0 comments
Closed

transpose of a list #1025

arunsrinivasan opened this issue Jan 27, 2015 · 0 comments
Assignees
Milestone

Comments

@arunsrinivasan
Copy link
Member

x = list(1:5, 6:8)
x
# [[1]]
# [1] 1 2 3 4 5
# 
# [[2]]
# [1] 6 7 8
transpose(x) # fill = NA is default
# [[1]]
# [1] 1 6
# 
# [[2]]
# [1] 2 7
# 
# [[3]]
# [1] 3 8
# 
# [[4]]
# [1]  4 NA
# 
# [[5]]
# [1]  5 NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant