View source: R/doj_blog_entries.R
| doj_blog_entries | R Documentation |
This function retrieves blog entries from the U.S. Department of Justice API. You can specify the number of results, sort direction, and an optional keyword filter.
doj_blog_entries(
n_results = 50,
search_direction = "DESC",
keyword = NULL,
clean = TRUE
)
n_results |
Integer. Number of blog entries to retrieve. Default is 50. |
search_direction |
Character. Sort order: either "ASC" (oldest first) or "DESC" (newest first). Default is "DESC". |
keyword |
Optional character string to filter results by keyword. |
clean |
Logical. If TRUE, cleans up the blog body and teaser fields. Default is TRUE. |
A cleaned dataframe containing DOJ blog entry metadata and content.
## Not run:
# Retrieve a single DOJ blog entry
result <- doj_blog_entries(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.