View source: R/query.R View source: R/AllGenerics.R
| hal_sort | R Documentation |
Sort Results
hal_sort(x, field, decreasing = FALSE, ...) hal_sort(x, field, decreasing = FALSE, ...)
x |
An object of class |
field |
A |
decreasing |
A |
... |
Currently not used. |
An object of class HALQuery.
N. Frerebeau
Other query tools:
hal_facet(),
hal_filter(),
hal_group(),
hal_query(),
hal_select()
library(magrittr)
## Select fields
hal1 <- hal_api() %>% hal_sort("docid")
hal1$sort
## Update query
hal2 <- hal_sort(hal1, "producedDate_tdate", decreasing = TRUE)
hal2$sort
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.