On Aug 22, 2012, at 3:26 PM, Rich Shepard wrote:

I've searched the Web with Google and do not find what might cause this
particular error from an invocation of cenboxplot:

cenboxplot(cu.t$quant, cu.t$ceneq1, cu.t$era, range=1.5, main='Total
Recoverable Copper', ylab='Concentration (mg/L)', xlab='Time Period')

Error in if (n > 0) (1L:n - a)/(n + 1 - 2 * a) else numeric() :
 argument is of length zero

I do not an observation with a concentration of zero; the only zeros are
the lower limits for censored observations.

It is not saying there are zero values for concentration.... it is saying there are groups with zero elements:

> table(cu.t$ceneq1, cu.t$era)

        Mining Pre-mining
  FALSE    723          0
  TRUE     183          9



 The dput() output of the data frame 'cu.t' is attached.

--

David Winsemius, MD
Alameda, CA, USA

______________________________________________
R-help@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.

Reply via email to