Skip to contents

Filters the input dataset if the provided expression is not NULL

Usage

filter_if(dataset, filter)

Arguments

dataset

Input dataset

filter

A filter condition. Must be an expression.

Value

A data.frame containing all rows in dataset matching filter or just dataset if filter is NULL

See also

Developer Utility Functions: %notin%(), %or%(), arg_name(), contains_vars(), convert_dtm_to_dtc(), extract_vars(), valid_time_units(), vars2chr()