[R] Dealing with a counted variable
Charles C. Berry
cberry at tajo.ucsd.edu
Sat Jun 20 01:26:58 CEST 2009
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 at 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:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
More information about the R-help
mailing list