I have the following list
my_list <- list(`3920_0` = structure(c(623700, 96400), .Dim = 1:2, .Dimnames = list("1", c("X", "Y"))),
`3864_0` = structure(c(665100, 167400), .Dim = 1:2, .Dimnames = list("1", c("X", "Y"))),
`1948_1` = structure(c(589800, 97900), .Dim = 1:2, .Dimnames = list("1", c("X", "Y"))))
looking as follows
$`3920_0`
X Y
1 623700 96400
$`3864_0`
X Y
1 665100 167400
$`1948_1`
X Y
1 589800 97900
When I use enframe I get the following
# A tibble: 3 x 2
name value
<chr> <list>
1 3920_0 <dbl[,2] [1 x 2]>
2 3864_0 <dbl[,2] [1 x 2]>
3 1948_1 <dbl[,2] [1 x 2]>
That is almost what I want, however I would like to "split" the list in the "value" column into two columns "X" and "Y".
Alternatively, would there be a better solution to achieve the final table without enframe()?