Re: [R] Frequency tables without underlying data

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Thu 31 Aug 2006 - 17:59:37 EST

Geoff Russell wrote:
> Hi from a new useR,
>
> I know how to build a table() with 2 factors(), but I want to build a
> table() when
> I only know the frequencies:
>
> e.g. I know that
>
> useR useStatA
> rich 100 200
> poor 200 5

  X <- as.table(matrix(c(100, 200, 100, 5), ncol=2))   dimnames(X) <-

     list(wealth = c("rich", "poor"), use = c("useR", "useStatA"))

Uwe Ligges

> but i don't have the underlying data to set up factors. Can I still make a
> frequency
> table?
>
> Cheers,
> Geoff Russell
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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 Thu Aug 31 21:11:45 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 31 Aug 2006 - 22:28:35 EST.

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