Dear R-Users,

Suppose I have data in the following format:

CODE_NAME     ZIP_CODE
John                   12345
John                   23456
John                   34567
Jane                   13242
Jane                   22123

I want to transpose / convert it into:
CODE_NAME     ZIP_CODE
John                  12345,23456,34567
Jane                  13242,22123

Any idea/pointer is appreciated.

Thanks a bunch,

Ferry

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to