select_persons: Select persons by number of observations

Description Usage Arguments Value Author(s) Examples

Description

Select the subset of persons who have a specified number of observations in the CANS dataframe

Usage

1
select_persons(cans, observations, person.id = 2)

Arguments

cans

cans is a CANS dataframe

observations

observations is a vector of integers which are the desired number of observations; could be a single integer, a range, or any set of values

person.id

person.id is an integer, the column number of the person identifier

Value

Returns a dataframe where the first column is a character vector of person identifiers, and the second column is the number of observatrions associated with each person. Ordered by decreasing number of observations.

Author(s)

Jack Simons <jack.simons@state.ma.us>

Examples

1
# none now

CANS.works documentation built on May 2, 2019, 5:17 p.m.