pir_org_type | R Documentation |
As imported, PIR organisation types are character variables. For the correct ordering when reshaping wide, this needs to be a factor variable.
pir_org_type(x)
x |
The column of a data frame giving the PIR organisation type. |
x <- data.frame(pir = c("", "NHS Trust", "Clinical Commissioning Group",
"Total Reported Cases", NA))
x$pir2 <- pir_org_type(x$pir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.