Message-ID: <350B1E74-ABFD-47DF-9A6D-43D02DE9DCD7@comcast.net>
Date: 2012-08-22T22:53:17Z
From: David Winsemius
Subject: Error in if (n > 0)
In-Reply-To: <alpine.LNX.2.00.1208221519570.4203@salmo.appl-ecosys.com>
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