[R] 'x' values must be positive.

jim holtman jholtman at gmail.com
Wed Mar 16 15:38:01 CET 2011


'b' appears to be characters.  try

pie(as.integer(b))

On Wed, Mar 16, 2011 at 9:28 AM, rens <piccavet at hotmail.com> wrote:
>> b
> [1] "2" "1" "1" "1" "1" "1"
>> pie(b)
> Error in pie(b) : 'x' values must be positive.
>
> Can someone help me?
>
> And sorry i am an beginner
>
> --
> View this message in context: http://r.789695.n4.nabble.com/x-values-must-be-positive-tp3381744p3381744.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.
>



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?



More information about the R-help mailing list