Skip to contents

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.

Value

a character vector of the default fields

Methods (by class)

  • default_fields(character): character method

  • default_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"