Ext_array_sex | R Documentation |
This is a sample data set used for demonstration purposes. They consist of two 3-dimensional arrays, one for number of deaths (dxt_array_sex
) and another for the the corresponding central exposures to risk (Ext_array_sex
).
data("Ext_array_sex")
data("dxt_array_sex")
An object of class array
of dimension 2 x 111 x 181.
A 3-dimensional data array (dim 1: strata, dim 2: ages, dim 3: years) with 2 strata (males and females), 111 ages, and 181 years:
Character. Indicate the gender/sex, labelled as:
"Male"
: ;
"Female"
: ..
Numeric. Ages at deaths, ranging between 0-109, and 110+.
Numeric. Years at deaths, spanning years 1841-2021.
##Load exposure data
data("Ext_array_sex")
str(Ext_array_sex)
head(Ext_array_sex)
#extracting a subset of the data (2 genders, ages 0-100, years 1961-2000)
Ext_array_sex[c("Male","Female"),as.character(0:100),as.character(1961:2000)]
##Load death data
data("dxt_array_sex")
str(dxt_array_sex)
head(dxt_array_sex)
#extracting a subset of the data (2 genders, ages 0-100, years 1961-2000)
dxt_array_sex[c("Male","Female"),as.character(0:100),as.character(1961:2000)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.