mountainMath / mountainMath/cmhc

Double CT identifiers

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.