prop: Calculates the percentile of an age distribution

Description Usage Arguments Value Examples

View source: R/prop.R

Description

Calculates the percentile of an age distribution

Usage

1
prop(age, pop, below = TRUE, ages = 0:100)

Arguments

age

The quantile.

pop

A matrix of population data.

below

logical, if true the lower tail is calculated.

ages

A vector of ages to consider.

Value

A (vector of) percentile(s).

Examples

1
2
men <- getPop(sex = "males")
prop(65, men, below = FALSE)

goranbrostrom/sweden14 documentation built on May 17, 2019, 7:59 a.m.