Return search results from legiscan's database
legiSearch.Rd
Return search results from legiscan's database. Check legiscan.com for specific search syntax for more details.
Arguments
- query
Enter your search text. Your query may use grammatically correct spacing. Use legiscan's search syntax for more powerful results.
- state
Search the entire nation by default with 'ALL' or specify state using letter abbreviations
- year
Should be an integer. 1=All, 2=Current, 3=Recent, 4=Prior, >1900=Exact Year
- session
Limit search to specific session with a session_id
- page
Default is set to return Page 1. `legisearch` will paginate and include results.
Examples
legiSearch(
query = "action:yesterday AND 'workers compensation'",
state = "TX"
)
#> Warning: Invalid API Key: Register <https://legiscan.com/user/register> Store with `setlegiKey`
#> [1] "Invalid API Key: Register <https://legiscan.com/user/register> Store with `setlegiKey`"
legiSearch(
query = "intro:month AND wage theft"
)
#> Warning: Invalid API Key: Register <https://legiscan.com/user/register> Store with `setlegiKey`
#> [1] "Invalid API Key: Register <https://legiscan.com/user/register> Store with `setlegiKey`"