select: S3 generic to set GDCQuery fields

Description Usage Arguments Value Methods (by class) Examples

View source: R/fields.R

Description

S3 generic to set GDCQuery fields

Usage

1
2
3
4
select(x, fields)

## S3 method for class 'GDCQuery'
select(x, fields)

Arguments

x

the objects on which to set fields

fields

a character vector specifying the fields

Value

A GDCQuery object, with the fields member altered.

Methods (by class)

Examples

1
2
3
4
5
6
7
8
9
gProj = projects()
gProj$fields
head(available_fields(gProj))
default_fields(gProj)

gProj %>%
  select(default_fields(gProj)[1:2]) %>%
  response() %>%
  str(max_level=2)

GenomicDataCommons documentation built on Nov. 8, 2020, 11:08 p.m.