count: Counts how many observations (optionally, satisfying a...

Description Usage Arguments Value Examples

Description

Counts how many observations (optionally, satisfying a condition)

Usage

1
count(ifstmt)

Arguments

ifstmt

an optional argument which gives an condition that must be met for the observation to be counted

Value

returns the count

Examples

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

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