custom_ca_giving: Detailed CA campaign giving summaries in custom chunks

custom_ca_givingR Documentation

Detailed CA campaign giving summaries in custom chunks

Description

These functions are used inside the custom function, to create detailed summaries of California state level political contributions. They have a similar interface to the ca_gave_to_* widgets in the Discovery Engine.

Usage

ca_giving_to_proposition(..., from = NULL, to = NULL, support = NULL)

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

Arguments

...

One or more codes (candidate/proposition)

from

Start date, in the format YYYYMMDD

to

End date, in the format YYYYMMDD

support

TRUE/FALSE, whether to look for supporters (TRUE) or those opposed (FALSE) to the ballot initiative. Defailts to both (support and oppose)

See Also

custom

Examples

wealthy = has_capacity(1)

## summary of all giving to CA state level campaigns to candidates
wealthy %>%
  custom(
    ca_giving = ca_giving_to_candidate()
  )

## find donors to Kamala Harris (whose code is CA770144) and append amounts
ca_gave_to_candidate(CA770144) %>%
custom(
harris_giving = ca_giving_to_candidate(CA770144)
)


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