[R] Dealing with a counted variable

John Lipkins john.lipkins at googlemail.com
Fri Jun 19 23:23:18 CEST 2009


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




More information about the R-help mailing list