From hpages at fhcrc.org  Wed Apr 24 17:39:49 2013
From: hpages at fhcrc.org (=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=)
Date: Wed, 24 Apr 2013 08:39:49 -0700
Subject: [Rd] about the 'length' arg of vector()
In-Reply-To: <20855.36713.442488.260920@stat.math.ethz.ch>
References: <51771720.7020404@fhcrc.org>
	<20855.36713.442488.260920@stat.math.ethz.ch>
Message-ID: <5177FCC5.20006@fhcrc.org>

On 04/24/2013 12:53 AM, Martin Maechler wrote:
>>>>>> Herv? Pag?s <hpages at fhcrc.org>
>>>>>>      on Tue, 23 Apr 2013 16:20:00 -0700 writes:
>
>      > Hi, In the man page for vector():
>
>      >    length: A non-negative integer specifying the desired
>      > length.  Double values will be coerced to integer:
>      > supplying an argument of length other than one is an
>      > error.
>
>      > Since long vectors are supported, it doesn't seem to be
>      > true anymore that "double values will be coerced to
>      > integer":
>
>      >> bigraw <- vector("raw", 3e9) length(bigraw)
>      >    [1] 3e+09
>      >> storage.mode(length(bigraw))
>      >    [1] "double"
>
>      > At least not always...
>
> Indeed.  Thank you, Herve!
> Change committed to the documentation.

Great. Thanks!

H.

>
> Martin Maechler,
> ETH Zurich
>
>
>      > Thanks, H.
>      > --
>      > Herv? Pag?s
>

-- 
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



[Rd] about the 'length' arg of vector()
=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=