custom_fec_giving | R Documentation |
These functions are used inside the custom
function, to create
detailed summaries of federal political contributions. They have a similar
interface to the fec_gave_to_* widgets in the Discovery Engine.
fec_giving_to_committee(..., from = NULL, to = NULL) fec_giving_to_category(..., from = NULL, to = NULL) fec_giving_to_candidate(..., from = NULL, to = NULL)
... |
One or more codes (committee/candidate/category) or synonyms |
from |
Start date, in the format YYYYMMDD |
to |
End date, in the format YYYYMMDD |
custom
wealthy = has_capacity(1) ## summary of all giving to FEC wealthy %>% custom( fec_giving = fec_giving_to_committee() ) ## giving to environmental PACS wealthy %>% custom( env_giving = fec_giving_to_category(environmental_policy) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.