search_contracts {hlidacr}R Documentation

Search contract

Description

Search contract

Usage

search_contracts(query, token = Sys.getenv("HLIDAC_TOKEN"), page = 1, sort = 0)

Arguments

query

Full-text search query

token

Access token

page

Page of results (Please note that if the page parameter exceeds 200, the function returns error)

sort

Ordering of the results, the available options are the following: - 0: sort by relevance - 1: recently added contracts first - 2: recently added contracts last - 3: the cheapest contracts first - 4: the most expensive contracts first - 5: recently concluded contracts first - 6: recently concluded contracts last - 7: the most defective contracts first - 8: sort by purchaser - 9: sort by supplier

Value

list containing 3 elements: - Total: Total number of datasets available (integer) - Page: Page of the result (integer) - Results: Data.frame with data concerning the datasets

See Also

https://www.hlidacstatu.cz/swagger/index.html

https://www.hlidacstatu.cz/api/v1/doc

https://www.hlidacstatu.cz/napoveda

https://smlouvy.gov.cz/

Examples

## Not run: 
search_contracts(query = "golf")

## End(Not run)

[Package hlidacr version 0.2.0 Index]