elephantupthewrongtree
elephantupthewrongtree
Looks like it got slower after [this pr](https://github.com/tidyverse/dplyr/pull/6119). Example above goes from 1.6s to 15s for me and profvis shows all the time is spent in `cli_format()` Goes to 0.05s...
Here's a reprex: ``` r library(data.table) library(dplyr, warn.conflicts = FALSE) dt % filter(x > 0) %>% summarize(nrow = n(), xmean = mean(x)) %>% as.data.table() #> nrow xmean #> 1: 0...
Would it be faster to just always use the second branch of your function, where you `rep` each column? (obviously it is in the example below, but I haven't thought...
When I wrote the issue I was thinking about just checking for a data.frame/tibble/as.data.frame/as_tibble call, to allow for complex calculations inside brackets in `mutate`. I can't remember the example I...
I think the only way to address this would be to assign the first argument and its length to variables, then pass them to `fcase` with the `TRUE`/`T`s `rep`licated the...
For reference data.table has a `by` argument to the `unique.data.table` function that does something like what's described by @lionel- (if I'm following), but with the data/metadata distinction provided by the...
I think implementing `pick()` is a separate issue from this one, because `across` output can still be used as a data frame in dplyr even with a non-NULL `.fns` ```...
Oh, didn't see your earlier comments. Seems you have an idea for how to implement, so disregard my comment :)
Throwing another name into the hat, because I like short names, I'll suggest `draw()` as in either (take your pick) - to "draw" out specific data from a tibble, as...
I think `create()` feels a little strange because the object of the verb (as you'd use it in normal speech) is the output instead of the input. Like, you `summarise()`/`mutate()`...