[R] read in summarised data as table()

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Apr 12 14:08:51 CEST 2011


as.table(as.matrix(X))

Uwe Ligges


On 11.04.2011 22:54, dirknbr wrote:
> Ok it looks like this
>
>     x   y    z
> a 12 12 34
> b 34 34 35
> c 56 78 0
>
> where the numbers are counts of cases
>
> I can read it in, but how do I tell R it's a table?
>
> Dirk
>
> --
> View this message in context: http://r.789695.n4.nabble.com/read-in-summarised-data-as-table-tp3442283p3443102.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.



More information about the R-help mailing list