filter_verbose: Filter verbose

Description Usage Arguments Examples

View source: R/misc.R

Description

A wraper of dplyr::filter() to give a warning for how many rows were dropped.

Usage

1

Arguments

.data

A data frame or similar object.

...

Logical predicates defined in terms of the variables in .data. Multiple conditions are combined with &. Only rows where the condition evaluates to TRUE are kept.

Examples

1
2
3
4
5
6
7
## Not run: 
set.seed(0)
data <- tibble::tibble(.rows = 40)
data$x1 <- sample(c(NA_real_, 1:4), 40, replace= TRUE)
filter_verbose(data, x1 > 0.5)

## End(Not run)

mattle24/mattle24utils documentation built on May 6, 2019, 4:33 p.m.