)), values = x[ends])
>>}
>> }
>>
>> Bill Dunlap
>> Spotfire, TIBCO Software
>> wdunlap tibco.com
>>
>>
>>> -Original Message-
>>> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
>>
re, TIBCO Software
> wdunlap tibco.com
>
>
>> -Original Message-
>> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
>> Behalf
>> Of Bert Gunter
>> Sent: Wednesday, January 08, 2014 8:56 AM
>> To: Prof Brian Ripley
&g
ter
> Sent: Wednesday, January 08, 2014 8:56 AM
> To: Prof Brian Ripley
> Cc: r-help@r-project.org
> Subject: Re: [R] bug in rle?
>
> Thank you Brian for your clear and informative answer. I was
> (obviously!) unaware of this and appreciate the response.
>
> Best,
Thank you Brian for your clear and informative answer. I was
(obviously!) unaware of this and appreciate the response.
Best,
Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilb
On 08/01/2014 16:23, Bert Gunter wrote:
Is the following a bug?
##(R version 3.0.2 (2013-09-25)
## Platform: i386-w64-mingw32/i386 (32-bit))
d <- data.frame(a=rep(letters[1:3],4:6))
rle(d$a)
##Error in rle(d$a) : 'x' must be an atomic vector
is.atomic(d$a)
##[1] TRUE
But
> is.vector(d$a)
Is the following a bug?
##(R version 3.0.2 (2013-09-25)
## Platform: i386-w64-mingw32/i386 (32-bit))
d <- data.frame(a=rep(letters[1:3],4:6))
rle(d$a)
##Error in rle(d$a) : 'x' must be an atomic vector
is.atomic(d$a)
##[1] TRUE
rle(c(d$a))
## Run Length Encoding
## lengths: int [1:3] 4 5 6
#
6 matches
Mail list logo