hal_select: Select Fields

View source: R/AllGenerics.R

hal_selectR Documentation

Select Fields

Description

Select Fields

Usage

hal_select(x, ...)

## S3 method for class 'HALQuery'
hal_select(x, ...)

Arguments

x

An object of class HALQuery (typically returned by hal_api()).

...

One or more character string separated by commas giving the fields to be returned.

Value

An object of class HALQuery.

Author(s)

N. Frerebeau

See Also

Other query tools: hal_facet(), hal_filter(), hal_group(), hal_query(), hal_sort()

Examples

library(magrittr)

## Select fields
hal1 <- hal_api() %>% hal_select("label_s")
hal1$fl

hal2 <- hal_api() %>% hal_select("halId_s", "uri_s")
hal2$fl

## Update query
hal3 <- hal_select(hal1, "docType_s")
hal3$fl

nfrerebeau/odyssey documentation built on March 30, 2022, 2:51 p.m.