Re: [R] dplyr complete.cases(.) works one way but not another

2015-09-30 Thread Giorgio Garziano
The "pronoun dot" is used in conjunction with %>% in dplyr (which imports magrittr). See pag.9, paragraph "Placing lhs elsewhere in rhs call" of the document: https://cran.r-project.org/web/packages/magrittr/magrittr.pdf -- GG __ R-help@r-project.org

Re: [R] dplyr complete.cases(.) works one way but not another

2015-09-30 Thread Dimitri Liakhovitski
Thank you very much, got it: It's because complete.cases is an R base command. On Wed, Sep 30, 2015 at 10:15 AM, Giorgio Garziano wrote: > This works: > > filter(mydata, complete.cases(mydata)) > > About dplyr "pronoun dot", see: > > http://www.r-bloggers.com/dplyr-0-2/ > > > -- > GG > > > > >

Re: [R] dplyr complete.cases(.) works one way but not another

2015-09-30 Thread Giorgio Garziano
This works: filter(mydata, complete.cases(mydata)) About dplyr "pronoun dot", see: http://www.r-bloggers.com/dplyr-0-2/ -- GG [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

[R] dplyr complete.cases(.) works one way but not another

2015-09-30 Thread Dimitri Liakhovitski
Hello! I don't have a data set, but my question is very clear without it. I have a data frame 'mydata' and want to reproduce in dplyr the following R base command: mydata[complete.cases(mydata), ] This dplyr command produces the expected result: library(dplyr) mydata %>% filter(complete.cases(.)