Closed rosinklemens closed 2 years ago
-- Be advised, row numbers refer to pull request "1400 review" version --
ungroup()
statement (as summarise does that already for the last grouping level)mutate(differ = pop_limit - pop_theo,
new_ims = in_decr(differ, ims, FALSE),
new_ems = in_decr(differ, ems, TRUE), ...
(in_decr() added at very end of file for demo purposes)
However, code for in-/decrease is checked and works correctly. Not sure how param values for less_ims/more_ims are obtained, though.stopifnot()
mutate(age = age + 1)
out_bir %>% arrange(district, year, sex, origin) %>% write_csv(paste0(out_path, "/births_future.csv"))
furthermore re-formatted according style guide (let's discuss)
r170: done (omit year in tibble). Even though: with year: joining is more elegant (no pre-selection necessary); but one column more in the tibble. Has now been changed: one column less in the tibble; more queries before the join. r191: done (see above) r295: done r310: good that it was checked the code works correctly; function not implemented (lower comprehensibility; at least not first priority); parameter tuning will be very important; yet, will be demanding/tricky. r342: not implemented; not first prio r379: done r388: done (and maybe an overall glossary could be helpful; see OneNote) r409: done r444: done
1400_demography-housing.r
in particular: correction ims3, ems3. If the correction in immigration and emigration is not sufficient for the total limit correction