R/get_schedule_e.R
get_independent_expenditures.Rd
Get specific line item expenditures for independent expenditures. Schedule E covers "outside spending". Filter on memo_code and is_notice.
get_independent_expenditures(data = NULL, api_key = Sys.getenv("DATAGOV_API_KEY"), data_structure = "tidy", is_notice = NULL, payee_name = NULL, filing_form = NULL, sort_null_only = NULL, cycle = NULL, sort_hide_null = NULL, max_date = NULL, candidate_id = NULL, sort = NULL, min_amount = NULL, support_oppose_indicator = NULL, min_date = NULL, min_image_number = NULL, image_number = NULL, max_amount = NULL, last_expenditure_amount = NULL, committee_id = NULL, last_office_total_ytd = NULL, max_image_number = NULL, last_expenditure_date = NULL, line_number = NULL) get_schedule_e(data = NULL, api_key = Sys.getenv("DATAGOV_API_KEY"), data_structure = "tidy", is_notice = NULL, payee_name = NULL, filing_form = NULL, sort_null_only = NULL, cycle = NULL, sort_hide_null = NULL, max_date = NULL, candidate_id = NULL, sort = NULL, min_amount = NULL, support_oppose_indicator = NULL, min_date = NULL, min_image_number = NULL, image_number = NULL, max_amount = NULL, last_expenditure_amount = NULL, committee_id = NULL, last_office_total_ytd = NULL, max_image_number = NULL, last_expenditure_date = NULL, line_number = NULL)
data | A dataframe or tibble. Usually this will be the returned result of search_candidates(). If a column is called 'candidate_id', get_candidate_totals() will return results for all IDs in that column and will attempt to join data to the result by candidate_id. Either this argument or candidate_ids is required |
---|---|
api_key | API key for https://api.data.gov. Get one at https://api.data.gov/signup. |
data_structure | A character describing how you want OpenFEC results. Options are 'tidy', 'list', or 'both.' Choose list for raw results. |
is_notice | Record filed as 24- or 48-hour notice |
payee_name | Name of the entity that received the payment |
filing_form | Filing form |
sort_null_only | Toggle that filters out all rows having sort column that is non-null |
cycle | Filter records to only those that were applicable to a given two-year period.The cycle begins with an odd year and is named for its ending, even year. |
sort_hide_null | Hide null values on sorted column(s). |
max_date | Maximum date |
candidate_id | A unique identifier assigned to each candidate registered with the FEC. If a person runs for several offices, that person will have separate candidate IDs for each office. |
sort | Provide a field to sort by. Use - for descending order. |
min_amount | Filter for all amounts greater than a value. |
support_oppose_indicator | Support or opposition |
min_date | Minimum date |
image_number | The image number of the page where the schedule item is reported |
max_amount | Filter for all amounts less than a value. |
last_expenditure_amount | When sorting by expenditure_amount, this is populated with the expenditure_amount of the last result. However, you will need to pass the index of that last result to last_index to get the next page. |
committee_id | A unique identifier assigned to each committee or filer registered with the FEC. In general committee id's begin with the letter C which is followed by eight digits. |
last_office_total_ytd | When sorting by office_total_ytd, this is populated with the office_total_ytd of the last result. However, you will need to pass the index of that last result to last_index to get the next page. |
last_expenditure_date | When sorting by expenditure_date, this is populated with the expenditure_date of the last result. However, you will need to pass the index of that last result to last_index to get the next page. |
line_number | Filter for form and line number using the following format: FORM-LINENUMBER. For example an argument such as F3X-16 would filter down to all entries from form F3X line number 16. |