[R] Re: your mail

Thomas Lumley tlumley at u.washington.edu
Fri Mar 29 16:59:13 CET 2002


On Fri, 29 Mar 2002, Chris Wen wrote:

> Hi,
>
> I am a newbie of R...
>
> What does the following message mean when I tried running a summary() on a
> dataset?
>
> Warning message:
> Integer overflow in sum(.); use sum(as.numeric(.))

It means that when calculating the sum of a set of integer values (as part
of calculating the mean) there was a numeric overflow -- the answer was
larger than 2^30 or about 1 billion. For large numbers you need to use
floating point rather than integer representation. You may want to convert
the offending column of your dataset to floating point with eg

dataset$variable<-as.numeric(dataset$variable)

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list