Skip to content
Snippets Groups Projects
Commit 4709d05e authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Update Austrian population tables (fix NA entries)

parent 61ac81bf
Branches
Tags
No related merge requests found
...@@ -40,7 +40,8 @@ mort.AT.census = array( ...@@ -40,7 +40,8 @@ mort.AT.census = array(
censtable = function(file, table, sheet, baseYear = 1900, sex = "m", skip = 5, n_max = 102) { censtable = function(file, table, sheet, baseYear = 1900, sex = "m", skip = 5, n_max = 102) {
data = read_excel(file, sheet = sheet, skip = skip, n_max = n_max) data = read_excel(file, sheet = sheet, skip = skip, n_max = n_max) %>%
filter(!is.na(x))
name = paste0("ÖVSt ", table, " ", dplyr::recode(sex, "m" = "M", "w" = "F", "u" = "U")) name = paste0("ÖVSt ", table, " ", dplyr::recode(sex, "m" = "M", "w" = "F", "u" = "U"))
tbl = mortalityTable.period( tbl = mortalityTable.period(
name = name, name = name,
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment