custom_fec_giving: Detailed FEC summaries in custom chunks

custom_fec_givingR Documentation

Detailed FEC summaries in custom chunks

Description

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.

Usage

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

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

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

Arguments

...

One or more codes (committee/candidate/category) or synonyms

from

Start date, in the format YYYYMMDD

to

End date, in the format YYYYMMDD

See Also

custom

Examples

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)
  )


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