[R] Help on Histogram ~ Barplot
Michael Dewey
lists at dewey.myzen.co.uk
Wed May 27 14:46:02 CEST 2015
On 27/05/2015 11:56, Shivi82 wrote:
> HI Jim,
>
> Thanks for the help however R throws an error when i create a var
> tot_mon_wt-
> tot_mon_wt<-by(mwlc$MFST_WT,mwlc$Month,sum). It gives me an error =
> Error in Summary.factor(c(1L, 1L), na.rm = FALSE) :
> ‘sum’ not meaningful for factors
>
> Not sure what this error refers to.
Dear Shivi
It means that you have tried to use sum on a variable which is a factor.
You can easily convert it to numeric but if it were me I would want to
find out how it got turned into a factor before I transformed it.
Thank you, Shivi
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Help-on-Histogram-Barplot-tp4707739p4707744.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
--
Michael
http://www.dewey.myzen.co.uk/home.html
More information about the R-help
mailing list