Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread Hadley Wickham
This was a change in tidyr 0.7.0 that is causing a lot of confusion, so we are preparing tidyr 0.7.1 which will back this change out. If you want a work around in the meantime, you can express your operation a bit more elegantly as: library(tidyr) df <- data.frame(v1 = 1:5, somestring = 6:10,

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread William Dunlap via R-help
Or perhaps two exclamation points would be better ('unquote' in the tidyverse lexicon, 3 bangs is 'unquote-splice'). Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Aug 24, 2017 at 10:20 AM, William Dunlap wrote: > Try putting !!! (three exclamation symbols) in front of

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread Jeff Newmiller
Looks like a bug to me. I think you need to correspond with the package (tidyr?) maintainer, perhaps by putting a bug report on GitHub. Next time please make your example reproducible by including the necessary "library" function calls. -- Sent from my phone. Please excuse my brevity. On

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread William Dunlap via R-help
Try putting !!! (three exclamation symbols) in front of which(...)== The non-standard evaluation in the tidyverse can cause confusion. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Aug 24, 2017 at 4:32 AM, Eugeny Melamud < eugeny.mela...@lanit-tercom.com> wrote: > Hi all! > > The

Re: [R] functions from 'base' package are not accessible

2017-08-24 Thread Bert Gunter
Inline. -- Bert On Thu, Aug 24, 2017 at 4:32 AM, Eugeny Melamud wrote: > Hi all! > > The following code (executed in console)... > somevar <- data.frame(v1 = 1:5, somestring = 6:10, v3 = 11:15, v4 = > 16:20); > somevar %>% gather(key = var, value =

[R] functions from 'base' package are not accessible

2017-08-24 Thread Eugeny Melamud
Hi all! The following code (executed in console)... somevar <- data.frame(v1 = 1:5, somestring = 6:10, v3 = 11:15, v4 = 16:20); somevar %>% gather(key = var, value = val, which(names(somevar) == "somestring"):length(somevar)) %>% head(2); throws... Error in which(names(somevar) ==