Displaying 3 results from an estimated 3 matches for "sagacity".
Did you mean:
sagacit
2023 Feb 13
2
Removing variables from data frame with a wile card
...t; Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>>
>> x["V2"]
>>
>> is more efficient than using drop=FALSE, and perfectly normal syntax
>> (data frames are lists of columns).
>
> <SNIP>
>
> I never cease to be amazed by the sagacity and perspicacity of the
> designers of R. I would have worried that x["V2"] would turn out to be
> a *list* (of length 1), but no, it retains the data.frame class, which
> is clearly the Right Thing To Do.
>
> cheers,
>
> Rolf
>
> --
> Honorary Research...
2006 May 17
3
Off topic --- help in locating a source.
Apologies for the off-topic question; as usual I'm trying to draw
upon the unparalleled knowledge and sagacity of the r-help list.
Please reply off-list if you can help me out.
A collaborator of mine found a formula we need, on sheets which he had
photocopied out of a book, some years ago. He cannot remember which
book (he's getting to be as senile and forgetful as I am, poor
bloke!). He thinks it wa...
2023 Feb 12
2
Removing variables from data frame with a wile card
x["V2"]
is more efficient than using drop=FALSE, and perfectly normal syntax (data frames are lists of columns). I would ignore the naysayers, or put a comment in if you want to accelerate their uptake.
As I understand it, one of the main reasons tibbles exist is because of drop=TRUE. List-slice (single-dimension) indexing works equally well with both standard and tibble types of data