Skip to content
Prev 175644 / 398503 Next

convert table to list

Hi there,

This is probably a rather simple question - but I was not able to solve it
so far.
I would like to convert the following table:

     A  B  C  D
 x 10 20 30 40
 y 11 21 31 41
 z 12      32 42
 

to a list with three columns like:

A x 10
A y 11
A z 12
B x 20
.
.
.

Any hints how do do this in R would be very much apprechiated.

cheers,

Herwig