l with the dimensions of the tibble
>>and if a is of length 1 but returns NOT a tibble but a vector of length
>>1 (I think), I can see that's logical but not what it says in the
>>documentation.
>>
>>[[a]] and [[,a]] return the same result, that seems excessiv
- Original Message -
> From: "Jeff Newmiller"
> To: "Chris Evans" , "r-helpr-project.org"
>
> Sent: Tuesday, 6 December, 2016 23:23:28
> Subject: Re: [R] Odd behaviour of mean() with a numeric column in a tibble
> You really need sleep. Th
indexing, in fact redefines the whole of indexing
> and subsetting?
It has row indexing, and besides [, x] not dropping dimension it works
pretty much the same.
>
> OK. I will go to sleep now and hope to feel less dumb(ed) when I wake.
> Perhaps Prof. Wickham or someone can spell out a bit
exing, in fact redefines the whole of
>indexing and subsetting?
>
>OK. I will go to sleep now and hope to feel less dumb(ed) when I wake.
>Perhaps Prof. Wickham or someone can spell out a bit less tersely, and
>I think incompletely, than the tibble documentation does, why all this
&
incompletely, than the tibble documentation does, why all this is good.
Thanks anyway Ista, you certainly hit the issue!
Very best all,
Chris
> From: "Ista Zahn"
> To: "Chris Evans"
> Cc: "r-helpr-project.org"
> Sent: Tuesday, 6 December, 2016 21:40
Not at a computer to check right now, but I believe single bracket indexing
a tibble always returns a tibble. To extract a vector use [[
On Dec 6, 2016 4:28 PM, "Chris Evans" wrote:
>
> I hope I am obeying the list rules here. I am using a raw R IDE for this
and running 3.3.2 (2016-10-31) on x86_
I hope I am obeying the list rules here. I am using a raw R IDE for this and
running 3.3.2 (2016-10-31) on x86_64-w64-mingw32/x64 (64-bit)
Here is a reproducible example. Code only first
require(tibble)
tmpTibble <- tibble(ID=letters,num=1:26)
min(tmpTibble[,2]) # fine
max(tmpTibble[,2]) # fine
7 matches
Mail list logo