mountainMath / mountainMath/cmhc
Double CT identifiers
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 29
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
There is an issue with some StatCan CT identifiers appearing twice with different internal CMHC identifiers. For example
get_cmhc(survey = "Rms", series = "Vacancy Rate", dimension = "Bedroom Type", breakdown = "Historical Time Periods", geo_uid = "3050016.02")
gives an error because there are two internal CMHC CTs for this StatCan census tract as can be seen when calling
cmhc::cmhc_ct_translation_data |> filter(CTUID=="3050016.02")
Not sure what's going on here, will have to check into this in more detail.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the get_cmhc call for the Rms Vacancy Rate example, then inspect cmhc::cmhc_ct_translation_data filtered to CTUID "3050016.02". Determine why the StatCan tract maps to two internal CMHC identifiers and make the lookup handle the duplicate consistently without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100