Re: [R] read in summarised data as table()

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Tue, 12 Apr 2011 14:08:51 +0200

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.



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. Received on Tue 12 Apr 2011 - 12:12:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Apr 2011 - 12:20:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive