get_filters: Get all document search filters applicable to government...

Description Usage Arguments Value Author(s) Examples

Description

get_filters parses the filter options available for selecting government publicattions. The current options include: keyword search, publication type, policy area, department, official document status, world locations, date of publication (before/after).

Usage

1
2
3
get_filters(field = c("all", "values", "descriptors"))

govuk_get_filters(field = c("all", "values", "descriptors"))

Arguments

field

specifies the parameter of filter that should be returned, has to be one of:

"all"

(default) both attributes and descriptors, as well as possible options for filters with drop-down menus

"values"

XML tag attributes that can be passed to browser

"descriptors"

description that can be viewed on the website by the enduser, text contained in the XML tag

Value

list with fields specified in the arguments

Author(s)

Tom Paskhalis

Examples

1
2
3
4
5
## Not run: 
filters <- get_filters()
head(as.data.frame(filters))

## End(Not run)

tpaskhalis/RgovUK documentation built on May 26, 2019, 9:37 a.m.