[R] proportion

Phil Spector spector at stat.berkeley.edu
Tue Sep 14 01:07:37 CEST 2010


Maybe prop.table ?

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu


On Mon, 13 Sep 2010, LCOG1 wrote:

>
> Hi ,
> SO i have been on a role of asking simple questions lately.  So much for
> feeling like im getting this R business.
>
> I wrote a script 2 weeks ago that utilized "proportion" to turn values in a
> table (from "table") into proportions to then graph.  I now get an error
> that proportion is not a function so im confused.  I ran the script a few
> times and im thinking maybe i had another library loaded from a previous
> process and that it wasnt listed in my script and now isnt being loaded.  So
> question is what library do i need to load or what other updates or changes
> have been made that now R cant find proportion?
>
> Probably useless with other code/data:
> textplot(paste(names(TrkSUV.Ag[[zp]]),proportion(TrkSUV.Ag[[zp]])),
> halign="center", valign="center",cex=1)
>
> -- 
> View this message in context: http://r.789695.n4.nabble.com/proportion-tp2538185p2538185.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