field_description: S3 Generic that returns the field description text, if...

View source: R/fields.R

field_descriptionR Documentation

S3 Generic that returns the field description text, if available

Description

S3 Generic that returns the field description text, if available

Usage

field_description(entity, field)

## S3 method for class 'GDCQuery'
field_description(entity, field)

## S3 method for class 'character'
field_description(entity, field)

Arguments

entity

character(1) string ('cases','files','projects', 'annotations', etc.) or an subclass of GDCQuery.

field

character(1), the name of the field that will be used to look up the description.

Value

character(1) descriptive text or character(0) if no description is available.

Methods (by class)

  • field_description(GDCQuery): GDCQuery method

  • field_description(character): character method

Examples

field_description('cases', 'annotations.category')
casesQuery = query('cases')
field_description(casesQuery, 'annotations.category')
field_description(cases(), 'annotations.category')


Bioconductor/GenomicDataCommons documentation built on Oct. 31, 2024, 7 a.m.