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(.))

But this command doesn't work:

filter(mydata, complete.cases(.))
Error: object '.' not found

Why doesn't it work?
Thank you!

-- 
Dimitri Liakhovitski

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to