On Wed, 23 Jul 2003 [EMAIL PROTECTED] wrote:

> Hi,
>
> zeros is output from fractions()
>
> >zeros
> [1]   -2 -2/5    1  4/3
> >abs(zeros)
> [1]   -2 -2/5    1  4/3
> >is.numeric(zeros)
> [1] TRUE
> >abs(zeros[1])
> [1] -2
> >as.numeric(zeros)
> [1] -2.000000 -0.400000  1.000000  1.333333
> >abs(as.numeric(zeros))
> [1] 2.000000 0.400000 1.000000 1.333333

Why is this a bug?


        -thomas


Thomas Lumley                   Assoc. Professor, Biostatistics
[EMAIL PROTECTED]       University of Washington, Seattle

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Reply via email to