Skip to content

suggestion: add function to obtain labels for categorical variables #47

@akarlinsky

Description

@akarlinsky

Some variables in vdem are categorical and when using vdemdata::vdem are downloaded as numerical.
A function to take a vdem df and label such variables would be very welcome.

See for example the geographic region (e_regiongeo) variable:
image

And what it looks like in R after using vdem function:
image

A similar function to what I'm thinking about exists in the EuroStat R package:
https://ropengov.github.io/eurostat/reference/label_eurostat.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions