[R] Error in if (n > 0)
David Winsemius
dwinsemius at comcast.net
Thu Aug 23 00:53:17 CEST 2012
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
More information about the R-help
mailing list