Skip to content

Commit

Permalink
Update get_gw.R
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman authored Sep 9, 2023
1 parent 5c2526f commit 10b84d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dictionary/get_gw.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ gw <- gw %>%
country = gsub(" \\(Annam.*", "", country)
) %>%
# ambiguous or not covered
filter(!gwc %in% c("TBT", "DRV", "HSD", "HSE", "WRT", "UPC", "TRA")) %>%
filter(!gwc %in% c("TBT", "DRV", "HSD", "HSE", "WRT", "UPC", "TRA")) %>%
mutate(idx = 1:n()) |>
group_by(idx) |>
mutate(panel = list(year(birth):year(death))) %>%
ungroup() |>
unnest(panel) |>
unnest(panel) |>
select(-idx, -birth, -death) |>
rename(year = panel) |>
# arbitrary
Expand Down

0 comments on commit 10b84d4

Please sign in to comment.