Re: [R] cross tabs with percents?

From: tom soyer <tom.soyer_at_gmail.com>
Date: Sun 22 Oct 2006 - 02:51:44 GMT

try prop.table()

On 10/21/06, ronggui <ronggui.huang@gmail.com> wrote:
>
> Maybe _CrossTable_ in gmodels package is what you want.
>
>
> 2006/10/22, Larry White <ljw1001@gmail.com>:
> >
> > -- apologies if this is a dup - i got a bounce saying the message was
> > unprocessed.
> >
> > Is there a straightforward way to get a table with percents in the
> > cells rather than counts? I've looked at table, ftable, xtabs, and
> > ctab, which did the conversion but returned the results in a single
> > row without labels.
> >
> > any suggestions are appreciated.
> > thank you.
> >
> > ______________________________________________
> > 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.
> >
>
>
>
> --
> ٹ
> Department of Sociology
> Fudan University
>
> [[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.
>
>
>

        [[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. Received on Sun Oct 22 12:56:22 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 Sun 22 Oct 2006 - 03:30:11 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.