| custom_ca_giving | R Documentation |
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.
ca_giving_to_proposition(..., from = NULL, to = NULL, support = NULL) ca_giving_to_candidate(..., from = NULL, to = NULL)
... |
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) |
custom
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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.