S3 Generic to return default GDC fields
Usage
default_fields(x)
# S3 method for character
default_fields(x)
# S3 method for GDCQuery
default_fields(x)
Arguments
- x
A character string ('cases','files','projects', 'annotations') or an subclass of
GDCQuery
.
Methods (by class)
default_fields(character)
: character methoddefault_fields(GDCQuery)
: GDCQuery method
Examples
default_fields('projects')
#> [1] "dbgap_accession_number" "disease_type" "intended_release_date"
#> [4] "name" "primary_site" "project_autocomplete"
#> [7] "project_id" "releasable" "released"
#> [10] "state"
projQuery = query('projects')
default_fields(projQuery)
#> [1] "dbgap_accession_number" "disease_type" "intended_release_date"
#> [4] "name" "primary_site" "project_autocomplete"
#> [7] "project_id" "releasable" "released"
#> [10] "state"