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.
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. >
Learn to use functions like help.search, RSiteSearch, or the sos package, these tools will help you answer your own questions like this. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of LCOG1 > Sent: Monday, September 13, 2010 4:53 PM > To: r-help at r-project.org > Subject: [R] proportion > > > 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.