See ?xtabs and take note of the examples HTH, Chuck On Fri, 19 Jun 2009, John Lipkins wrote:
Dear all, I sometimes receive data which has a following layout: Age urban count 34 X 13 64 3 In which count represents the amount of times a certain observation has been fulfilled. How ever when using this data in R I’m confronted with the fact that R can not use this data in it’s functions, for example table(). Is there an easy solution for this problem? Thanks! Regards, John ______________________________________________ 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.
Charles C. Berry (858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
______________________________________________ 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.