Displaying 1 result from an estimated 1 matches for "colfreq".
2007 Dec 01
2
NAs produced by integer overflow (PR#10482)
Full_Name: Stefan Th. Gries
Version: R version 2.6.1 (2007-11-26)
OS: Windows XP Home SP2
Submission from: (NULL) (68.6.47.105)
Hi
A simple computation results in integer overflow:
These are the relevant vectors:
> sum(cur.obs)
[1] 110231
> colfreq
other past perfect present progressive
14845 1222 4776 101347 2863
> sum(colfreq)
[1] 125053
Now ...
# this works ...
> sum(cur.obs)*(colfreq/sum(colfreq)) # note: brackets around the division
other past perfect pr...