Re: [R] 'x' values must be positive.

From: jim holtman <jholtman_at_gmail.com>
Date: Wed, 16 Mar 2011 10:38:01 -0400

'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?

______________________________________________
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.
Received on Wed 16 Mar 2011 - 14:50:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Mar 2011 - 15:00:22 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.

list of date sections of archive