Missing CSDs in 2016 Census of Population list_census_regions function
yeedm opened this issue · comments
Hi, this is my first time writing an issue! I'm a user of cancensus, and noticed this while working on a project:
In the following call list_census_regions(dataset = "CA16")
, there are 14 CSDs missing: '2478802', '2472802', '2467802', '3529020', '3560077', '3557075', '3557077', '2483804', '3528037', '3539017', '3539021', '3544071', '4812806', '5917811'
. There are 5,162 CSDs in the 2016 Census of Population. However, the list_census_regions function only returns 5,148 CSDs.
Thanks for the heads-up, this turned out to be an issue that's coming down to NA population counts (these seem to be First Nation reserves that did not get enumerated properly) and how these are handled on the CensusMapper server. The main issue is fixed now (you might have to re-load your R session to see the changes), but the NA handling of population counts on the {cancensus} side is not working properly and the population counts get coerced to zero.
I am adding this to the list of things to change in the next {cancensus} update.
Turned out to be an issue server side where NA values got coerced to zero, fixed now. Population now shows up as NA for these CSDs.