Re: [R] summarize_ (NSE) in combination with quantile not working

2015-11-23 Thread Tobias Byland
Hi SD, thanks, that was exactly what I was looking for! Much appreciated :) Regards, Tobi On 11/23/2015 9:59 PM, Sébastien Durier wrote: Hello, A more explicit response can be found in : https://cran.r-project.org/web/packages/lazyeval/vignettes/lazyeval.html where it is explained that : "qu

Re: [R] summarize_ (NSE) in combination with quantile not working

2015-11-23 Thread Sébastien Durier
Hello, A more explicit response can be found in : https://cran.r-project.org/web/packages/lazyeval/vignettes/lazyeval.html where it is explained that : "quoted called and strings don’t have environments associated with them, so as.lazy() defaults to using baseenv(). This will work if the expres

Re: [R] summarize_ (NSE) in combination with quantile not working

2015-11-21 Thread David Winsemius
> On Nov 21, 2015, at 3:33 PM, Tobias Byland wrote: > > Hi everyone, > > I am stumbling over the following issue when using the NSE (non-standard > evaluation) of the summarise function in dpylr (as described here: > https://cran.r-project.org/web/packages/dplyr/vignettes/nse.html): > > mtca

Re: [R] summarize_ (NSE) in combination with quantile not working

2015-11-21 Thread Jeff Newmiller
Please post using plain text. The following works. mutate %>% summarise_( ~quantile( mpg, 0.1 ) ) Read the vignette on nse that comes with dplyr, or Google the error message. On November 21, 2015 3:33:16 PM PST, Tobias Byland wrote: >Hi everyone, > >I am stumbling over the following issue wh

[R] summarize_ (NSE) in combination with quantile not working

2015-11-21 Thread Tobias Byland
Hi everyone, I am stumbling over the following issue when using the NSE (non-standard evaluation) of the summarise function in dpylr (as described here: https://cran.r-project.org/web/packages/dplyr/vignettes/nse.html): mtcars %>% summarise(min(mpg)) # summarize and min mtcars %>% summar