custom_giving: Detailed giving summaries in custom chunks

custom_givingR Documentation

Detailed giving summaries in custom chunks

Description

These functions are used inside the custom function, to create detailed giving summaries. They have a similar interface to the giving widgets in the Discovery Engine.

Usage

giving_to_area(..., from = NULL, to = NULL)

giving_to_department(..., from = NULL, to = NULL)

giving_to_fund_type(..., from = NULL, to = NULL)

giving_to_fund(..., from = NULL, to = NULL)

Arguments

...

One or more codes (area/department/type, etc) or synonyms

from

Start date, in the format YYYYMMDD

to

End date, in the format YYYYMMDD

See Also

custom

Examples

wealthy = has_capacity(1)

## get total giving to campus in FY15 and FY16
## as with the disco engine, i can get giving anywhere on campus
## by not specifying an area
wealthy %>%
  custom(
    fy15_giving = giving_to_area(from = 20140701, to = 20150630),
    fy16_giving = giving_to_area(from = 20150701, to = 20160630)
  )

## total giving to neuro/brain related funds:
neuro_fund = fund_text_contains("neuro*", "brain")
wealthy %>%
  custom(neuro_giving = giving_to_fund(neuro_fund))


cwolfsonseeley/discoappend documentation built on March 17, 2022, 8:36 p.m.