On 18 August 2005 at 16:01, Xing Qiu wrote:
| Hi,
|
| I noticed that when I was conducting some calculation involving
| finding correlation coeficients, R stopped abnormally. So I did some
| research, and find out that 0/0 was the culprit. For sure 0/0 is not
| a valid expression, but R should give a warning, an error msg or NaN
| instead of segmentation fault.
|
| I am using R 2.1.0 under Gentoo Linux. My GCC version is 3.3.5.
edd at basebud:~> R
R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.1.1 (2005-06-20), ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for a HTML browser interface to help.
Type 'q()' to quit R.
> 0/0
[1] NaN>
No problem on Debian 'testing' with R 2.1.1. You may want to try a
different
libc.
Dirk
--
Statistics: The (futile) attempt to offer certainty about uncertainty.
-- Roger Koenker, 'Dictionary of Received Ideas of Statistics'