momeara · GitHub

> library(dplyr)
 Attaching package: ‘dplyr’
 The following object is masked from ‘package:stats’:
     filter
 The following objects are masked from ‘package:base’:
     intersect, setdiff, setequal, union
 > sessionInfo()
 R version 3.1.1 (2014-07-10)
 Platform: x86_64-unknown-linux-gnu (64-bit)
 locale:
  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
 [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
 attached base packages:
 [1] stats     graphics  grDevices utils     datasets  methods   base
 other attached packages:
 [1] dplyr_0.3.0.9000
 loaded via a namespace (and not attached):
 [1] assertthat_0.1 compiler_3.1.1 DBI_0.3.1      magrittr_1.0.1 parallel_3.1.1
 [6] Rcpp_0.11.3    tools_3.1.1
 > x <- data_frame() %>% filter(F)
 > x
 data frame with 0 columns and 0 rows
 > x <- data_frame() %>% filter(F)
!> x
 data frame with 0 columns and 65 rows

Read the original on github.com ↗