listif: prints the part of the dataset that satisfies certain...

Description Usage Arguments Value Examples

Description

prints the part of the dataset that satisfies certain conditions

Usage

1
listif(cond, vars, ...)

Arguments

cond

a conditional expression; only observations that satisfy the condition will be returned.

vars

a variable list; only variables in the list will be returned.

...

other options, currently ignored

Value

the part of the dataset that satisfies the condition and contains the specified columns

Examples

1
2
3
use(cars, clear=TRUE)
listif()
listif(speed <= 20)

genvar documentation built on Jan. 21, 2020, 9:07 a.m.