hal_filter | R Documentation |
Filter Results
hal_filter(x, ...) ## S3 method for class 'HALQuery' hal_filter(x, value, field = NULL, ...)
x |
An object of class |
... |
Currently not used. |
value |
A |
field |
A |
An object of class HALQuery
.
N. Frerebeau
Other query tools:
hal_facet()
,
hal_group()
,
hal_query()
,
hal_select()
,
hal_sort()
library(magrittr) ## Simple filer hal1 <- hal_api() %>% hal_filter("file", "submitType_s") hal1$fq ## Advanced filter hal2 <- hal_api() %>% hal_filter(c("THESE", "HDR"), "docType_s") hal2$fq ## Multiple filters hal3 <- hal_api() %>% hal_filter("[NOW-1MONTHS/DAY TO NOW/HOUR]", "submittedDate_tdate") %>% hal_filter("-notice", "submitType_s") hal3$fq ## Range filters hal4 <- hal_api() %>% hal_filter("[2000 TO 2013]", "submittedDateY_i") hal4$fq hal5 <- hal_api() %>% hal_filter("[Aa TO Ab]", "city_s") hal5$fq
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.