Get districts in a specific District Factor Group
Source:R/config_peer_groups.R
get_dfg_districts.RdReturns the district IDs for all districts in a specific District Factor Group. DFG A represents the highest-need communities in New Jersey and is commonly used as a peer group for urban districts.
This function fetches the DFG data from NJ DOE and filters to the requested group.
Examples
if (FALSE) { # \dontrun{
# Get all DFG A districts (highest need)
dfg_a <- get_dfg_districts("A")
# Use as peer group for percentile ranking
grate %>%
define_peer_group("custom", custom_ids = dfg_a) %>%
add_percentile_rank("grad_rate")
} # }