Public-Health-Scotland / phsmethods

An R package to standardise methods used in Public Health Scotland (https://public-health-scotland.github.io/phsmethods/)
https://public-health-scotland.github.io/phsmethods/
54 stars 13 forks source link

Matching geography codes to their names #13

Closed jvillacampa closed 4 years ago

jvillacampa commented 4 years ago

One idea discussed in our team (QI) was to have a function to get the name of the health board based on the geography code. I have got a function that matches the geography code of many different types of areas (from constituencies and datazones to councils and boards) with their respective name. Would that be one worth adding to the package?

jackhannah95 commented 4 years ago

Hi @jvillacampa. Sorry for the delay in replying. I haven't spoken to David or Lucinda but I'm assuming they know about it from the QI meeting, and I think it's a good idea. Do you think it'd be worth having a function to do the reverse as well? Or is that overkill?

jvillacampa commented 4 years ago

Cheers @jackhannah95. A reverse function would be good, but might need to think about it. It could be a bit tricky as sometimes areas of different geography levels share a name (e.g. Highland council and board). I'll prepare a pull request.