All functions

all_text()

Read all text from a file

congress_years()

Get years for provided congresses

d_init.rda

An empty dataframe to to use in place of failed scrape

extract_names()

A helper function to extract speakers in the Congressional Record using a regular expression to match how the Record notes speakers.

get_cr_df()

The main function to get metadata for the Congressional Record for a given date and section (e.g., "house-section" or "senate-section"). This metadata can then be provided to `get_cr_htm()` to download htm files for the desired sections.

get_cr_htm()

A function to download htm files of the Congressional Record for a given url address)

head_text()

Extract header text from congressional record htm files

keyword_sentence()

Pull sentences that mention given keywords from text files

make_dir()

A wrapper for `creat.dir()` if directory does not exist.

parse_by_speaker()

A helper function to parse files with more than one speaker

parse_cr()

The main function to parse .htm Congressional Record files in a directory by speaker and save parsed .txt files in a parallel directory

parse_text()

Map the `parse()` function to a vector of text.

write_cr()

Write txt files parsed by legislator using `extractMemberName() from the `legislators` R package