View source: R/assign_web_group.R
assign_web_group | R Documentation |
Assigns UCLA website groupings based on a combination of a Jurisdiction and Age field. Web groupings include ICE, Federal, Juvenile, Prison, Psychiatric, and County. ICE and Federal facilities will never be assigned Juvenile (i.e., Jurisdiction takes precedence for ICE and Federal facilities, and Age takes precedence for State, County, and Psychiatric facilities).
assign_web_group(dat)
dat |
data frame with columns for Jurisdiction and Age (at least) |
original data frame with new Web.Group column added
assign_web_group( tibble( Name = "Sample youth facility", Age = "Juvenile", Jurisdiction = "state" ) %>% add_row( Name = "Sample federal facility", Age = "Adult", Jurisdiction = "federal" ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.