We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have value labels stored somehow, then have functions for people to use this easily. One idea is to store them as JSON, with get functions:
vars = list(gender = list( description = "Patient's gender", values = list("1" = "Female", "2" = "Male", "9" = "Unknown"), type = "integer" )) %>% jsonlite::toJSON() get_values <- function(variable) { json <- jsonlite::fromJSON(vars) return(json[[variable]][["values"]]) } get_values("gender")
Could also have functions that would 'swap out' values for labels (to be used for plots etc.) mutate(gender = slf_factor_labels(gender))
mutate(gender = slf_factor_labels(gender))
The text was updated successfully, but these errors were encountered:
@Public-Health-Scotland/source-linkage-files
Sorry, something went wrong.
No branches or pull requests
Have value labels stored somehow, then have functions for people to use this easily. One idea is to store them as JSON, with get functions:
Could also have functions that would 'swap out' values for labels (to be used for plots etc.)
mutate(gender = slf_factor_labels(gender))
The text was updated successfully, but these errors were encountered: