Learn R Programming

explore (version 1.3.4)

drop_obs_if: Drop all observations where expression is true

Description

Drop all observations where expression is true

Usage

drop_obs_if(data, expr)

Value

Data frame

Arguments

data

Data frame

expr

Expression

Examples

Run this code
drop_obs_if(iris, Species == "setosa")
drop_obs_if(iris, Sepal.Length < 5 | Sepal.Length >7)

Run the code above in your browser using DataLab