[R] 'x' values must be positive.
Ivan Calandra
ivan.calandra at uni-hamburg.de
Wed Mar 16 15:44:57 CET 2011
Hi,
b is a character vector.
Try as.numeric(b).
You probably need to read some documentation about R.
Ivan
Le 3/16/2011 14:28, rens a écrit :
>> 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.
>
--
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calandra at uni-hamburg.de
**********
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/1525_8_1.php
More information about the R-help
mailing list