7
Considering a list x
composed of n
vectors. To illustrate the problem I thought it had 3 elements, as follows:
>x
$`2751006`
[1] 106.2 75.4 65.4 87.4 76.8 196.4 74.2
$`2751007`
[1] 73.9 110.1 101.3
$`2752006`
[1] 100.0 200.0
How can I restructure the information on this list on data.frame
of two columns of names X1 and X2:
X1 X2
106.2 2751006
75.4 2751006
65.4 2751006
87.4 2751006
76.8 2751006
196.4 2751006
74.2 2751006
73.9 2751007
110.1 2751007
101.3 2751007
100.0 2752006
200.0 2752006
good! for sure this is the best way to do!
– Daniel Falbel
Very good!!! Thank you, helped me a lot.
– Jean