Learn R Programming

genvar (version 0.0.1.4)

dropif: drops rows from the dataset

Description

drops rows from the dataset

Usage

dropif(x)

Arguments

x

a condition like (ex: "var1==2") describing the observations that should be removed from the data set.

Value

returns NULL, invisibly

Examples

Run this code
# NOT RUN {
use(cars, clear=TRUE)
listif()
dropif("speed <= 20")
listif()
# }

Run the code above in your browser using DataLab