swedeaths {eha} | R Documentation |
Swedish death data, 1969-2020.
Description
A data frame containing data on the number of deaths by sex, age and year, Sweden 1969-2020.
Usage
data(swedeaths)
Format
A data frame with 5 variables and 10504 observations.
age
Numerical with integer values 0-100, representing achieved age in years during the actual calendar year. The highest value, 100, represents ages 100 and above.
sex
A factor with two levels, "women" and "men".
year
Calendar year.
deaths
Number of deaths by age, sex, and year.
id
Created by the
reshape
procedure, see Details.
Details
Data are downloaded from Statistics Sweden in the form of a csv file and and in that process converted to a data frame. Variable names are translated from Swedish, and some of them are coverted to factors. Each numeric column contains the number of deaths by sex and age. The original data set is in wide form and then converted to long format.
Source
Statistics Sweden, https://www.scb.se.
See Also
Examples
summary(swedeaths)
## maybe str(swedeaths) ...