[R] Simple list manipulation question

Sean Davis sdavis2 at mail.nih.gov
Fri May 28 14:49:30 CEST 2004


I have a list of vectors

$A
"AB" "BC" "CD"

$B
"GF" "HG" "FH" "FJ"

and I want to convert it into a dataframe of form

A  AB
A  BC
A  CD
B  GF
B  HG
B  FH
B  FJ

Just can't quite come up with a nice "R" solution for it.

Thanks,
Sean




More information about the R-help mailing list