View source: R/add_hospital_board.R
add_hospital_board | R Documentation |
Assign Health Board names based on Hospital Location codes
add_hospital_board(df, locationcode, hbcode, region = FALSE)
df |
The data frame to be mutated |
locationcode |
The name of the location code variable |
hbcode |
The name of the existing Health Board code variable |
region |
When TRUE, returns "XXXX Region", when FALSE returns "NHS XXXX" (default FALSE) |
Data frame
Other Recoding:
add_board_from_lcaname()
example_data <- base::data.frame(location = c("A0001", "B0002", "C0004"), hbres = c("", "", "S08000007")) example_data_2 <- add_hospital_board(example_data, location, hbres, region = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.