Skip to content

A way to convert code_muni into any other higher level aggregations #311

Description

@rafalopespx

Hello there,

Is there any rapid and fast way to know from a code_muni in which health_region, macro or micro, this municipality is inserted?

This is tricky to do if you trust only on the code, although the code_muni carries information from the state level and region, it is not true that part of the code_muni can be assigned to a code_health_region or code_health_macrorregion, just taking the first 5 digits from the code_muni

A workaround that I developed is using one of the relational tables from dataSUS to add the code_health_region and/or code_health_macrorregion to a data.frame with code_muni

maybe this can be implemented in read_municipalityfunction, as a parameter being passed by the user to return with other code other than code_muni

Thanks for the amazing package!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions