R/get_statement_subjects.R

Defines functions get_statement_subjects

Documented in get_statement_subjects

#' Get Statement Subjects
#'
#'Get lists of subjects used to categorize congressional statements, use the following function. 
#'These subjects are not automatically assigned but are manually curated by ProPublica, although 
#'they are based on legislative subjects produced by the Library of Congress. 
#'
#' @inheritParams get_new_members
#'
#' @return List of returned JSON from endpoint that retrieves all of the subjects that have been used at least once.
#' @export
#'
#' @examples
#' \dontrun{
#' get_statement_subjects()
#' }
get_statement_subjects <- function(page = 1, myAPI_Key){
  API = 'congress'
  query <- "statements/subjects.json"
  pp_query(query, API, page = page, myAPI_Key = myAPI_Key)
}

Try the ProPublicaR package in your browser

Any scripts or data that you put into this service are public.

ProPublicaR documentation built on Sept. 8, 2023, 5:53 p.m.