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

Description Usage Arguments Value Examples

View source: R/fields.R

Description

S3 Generic that returns the field description text, if available

Usage

1
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.

Examples

1
2
3
4
field_description('cases', 'annotations.category')
casesQuery = query('cases')
field_description(casesQuery, 'annotations.category')
field_description(cases(), 'annotations.category')

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