On Sat, Sep 01, 2007 at 05:22:26PM -0600, Tony Plate wrote:
> One place where I've been caught by -ve zeros is with unit tests. If
> identical(-0, 0) returns FALSE, and the object storage doesn't preserve
> -ve zeros, that can lead to test failures that are tricky to debug.
>
> However, it does
One place where I've been caught by -ve zeros is with unit tests. If
identical(-0, 0) returns FALSE, and the object storage doesn't preserve
-ve zeros, that can lead to test failures that are tricky to debug.
However, it doesn't look like that is too much a problem in the current
incarnation o
On Fri, Aug 31, 2007 at 08:39:02PM -0400, Duncan Murdoch wrote:
[snip]
> The other day I came across one in complex numbers, and it took me a
> while to figure out that negative zero was what was happening:
>
> > x <- complex(real = -1)
> > x
> [1] -1+0i
> > 1/x
> [1] -1+0i
> > x^(1/3)
>
On 9/1/07, Peter Dalgaard <[EMAIL PROTECTED]> wrote:
> Gabor Grothendieck wrote:
> > The NEWS file refers to a new function within but it does not appear
> > to be found:
> >
> >
> >> within()
> >>
> > Error: could not find function "within"
> >
> >
> >> R.version.string # Windows Vista
> >>
> > [1
Gabor Grothendieck wrote:
> The NEWS file refers to a new function within but it does not appear
> to be found:
>
>
>> within()
>>
> Error: could not find function "within"
>
>
>> R.version.string # Windows Vista
>>
> [1] "R version 2.6.0 Under development (unstable) (2007-08-31 r42
[EMAIL PROTECTED] wrote:
>
> On 8/31/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>> The IEEE floating point standard allows for negative zero, but it's hard
>> to know that you have one in R. One reliable test is to take the
>> reciprocal. For example,
>>
>> > y <- 0
>> > 1/y
>> [1] Inf
>>
On Sat, 1 Sep 2007, Tobias Verbeke wrote:
> Dear list,
>
> Using serialize it is possible to save
> the binary string representing an R
> object to a raw R vector.
>
> ## adapted from ?serialize
> x <- serialize(list(1,2,3), NULL)
> x
>
> I am looking for a way to capture
> the binary string that
The NEWS file refers to a new function within but it does not appear
to be found:
> within()
Error: could not find function "within"
> R.version.string # Windows Vista
[1] "R version 2.6.0 Under development (unstable) (2007-08-31 r42709)"
__
R-devel@r-
Dear list,
Using serialize it is possible to save
the binary string representing an R
object to a raw R vector.
## adapted from ?serialize
x <- serialize(list(1,2,3), NULL)
x
I am looking for a way to capture
the binary string that in normal
use of graphics devices will be
written to (most commo