Tidyverse approach to binding unnamed list of unnamed vectors by row - do.call(rbind,x) equivalent
Not entirely sure about efficiency, but a compact option using purrr
and tibble
could be:
map_dfc(purrr::transpose(data), ~ unlist(tibble(.))) V1 V2 V3 V4 V5 <chr> <chr> <chr> <chr> <chr>1 A 1 4 7 12 2 B 2 5 8 15 3 C 3 6 9 18
Edit
Use @sindri_baldur's approach: https://stackoverflow.com/a/61660119/8583393
A way with data.table
, similar to what @tmfmnk showed
library(data.table)as.data.table(transpose(data))# V1 V2 V3 V4 V5#1: A 1 4 7 12#2: B 2 5 8 15#3: C 3 6 9 18
library(data.table)setDF(transpose(data)) V1 V2 V3 V4 V51 A 1 4 7 122 B 2 5 8 153 C 3 6 9 18