View source: R/doj_press_releases.R
| doj_press_releases | R Documentation |
This function retrieves press releases from the U.S. Department of Justice API. You can specify the number of results, search direction, and optional keyword filtering.
doj_press_releases(
n_results = 50,
search_direction = "DESC",
keyword = NULL,
clean = TRUE
)
n_results |
Integer. Number of press releases to retrieve. Default is 50. |
search_direction |
Character. "ASC" or "DESC" for ascending or descending sort by date. Default is "DESC". |
keyword |
Optional character string to filter results by keyword. |
clean |
Logical. If TRUE, cleans up the text fields. Default is TRUE. |
A cleaned dataframe containing DOJ press release metadata and content.
## Not run:
# Retrieve a single DOJ press release
result <- doj_press_releases(n_results = 1)
print(result)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.