Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

N.dk

Population size in Denmark


Description

The population size at 1st January in ages 0-99.

Usage

data(N.dk)

Format

A data frame with 7200 observations on the following 4 variables.

sex

Sex, 1:males, 2:females

A

Age. 0:0, 1:1, ..., 98:98, 99:99+

P

Year

N

Number of persons alive at 1st January year P

Source

Examples

data(N.dk)
str(N.dk)
with(N.dk,addmargins(tapply(N,list(P,sex),sum),2))
with(subset(N.dk,P==max(P)),addmargins(tapply(N,list(A,sex),sum)))

Epi

Statistical Analysis in Epidemiology

v2.44
GPL-2
Authors
Bendix Carstensen [aut, cre], Martyn Plummer [aut], Esa Laara [ctb], Michael Hills [ctb]
Initial release
2021-02-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.