inspect: Investigate MER disaggs

Description Usage Arguments Value Examples

View source: R/inspect.R

Description

Investigate MER disaggs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
inspect(
  df,
  ind,
  group_var = c("standardizeddisaggregate"),
  disagg = NULL,
  pd = fy2017apr,
  ou = NULL,
  agency = NULL,
  nd = NULL,
  order_on = NULL,
  clean = TRUE
)

Arguments

df

data frame to inspect

ind

MER indicator(s) to aggregate into table

group_var

row variables in the table (aggregated up to), default = standardizeddisaggregate; must be written in list form c()

disagg

standardized disaggregate to filter on

pd

period(s) to look at

ou

operating unit (filter)

agency

funding agency to (filter)

nd

numerator (N) or denominator (D) (filter)

order_on

what variable to sort on (descending)

clean

knitr table (TRUE) or tibble (FALSE) - set clean = FALSE if creating a data frame

Value

aggregated data table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: #inspect TX_CURR disaggs
df_mer %>% inspect("TX_CURR")

#inspect TX_CURR by funding agency in Kenya
df_mer %>%
inspect("TX_CURR", group_var = c("fundingagency"),
disagg = "MostCompleteAgeDisagg",
pd = c(fy2016apr, fy2017apr),
order_on = fy2017apr,
ou = "Kenya")
## End(Not run)

ICPI/ICPIutilities documentation built on Aug. 30, 2021, 12:19 p.m.