hal_query | R Documentation |
Build Query
hal_query(x, ...) ## S3 method for class 'HALQuery' hal_query(x, value, field = NULL, ...) x %OR% y x %AND% y x %NOT% y x %BY% y x %IN% y x %TO% y
x, y |
A |
... |
Currently not used. |
value |
A |
field |
A |
An object of class HALQuery
.
N. Frerebeau
Other query tools:
hal_facet()
,
hal_filter()
,
hal_group()
,
hal_select()
,
hal_sort()
library(magrittr) ## Select fields hal1 <- hal_api() %>% hal_query("asie") hal1$q term <- list("japon", "france") hal2 <- hal_api() %>% hal_query(term, field = "title_t") hal2$q term <- list("Journal", c("Histoire", "History")) hal3 <- hal_api() %>% hal_query(term, field = "title_t") hal3$q ## Update query hal4 <- hal_query(hal1, "agricol?") hal4$q ## Operators term <- list("Paris", "France", "history") %NOT% list("Texas", "history") hal5 <- hal_api() %>% hal_query(term %IN% "text") hal5$q term <- c("aluminium", "fer") %BY% 3 %IN% "title_t" hal6 <- hal_api() %>% hal_query(term) hal6$q term <- list("ecology" %IN% "title_t", "cell" %IN% "text") hal7 <- hal_api() %>% hal_query(term) hal7$q
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.