I suspect the problem stems from the fact that there are a couple of NA
values.

> sunflowerplot(lastoto,maxear)

Error in rep.int(i.multi, number[number > 1]) :
        invalid number of copies in rep.int()
So I used the subset command to get rid of the cases with NA

hell<-subset(ChinOtoMayB,is.na(lastoto)==FALSE)

Then it worked perfectly

sunflowerplot(hell$lastoto,hell$maxear)

Is there a method with greater finesse to deal with NA values? In
correlations one can state use="complete.obs"
But that did not work in sunflowerplot

-- 
Farrel Buchinsky

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to