Learn R Programming

GenomicDataCommons (version 1.3.1)

id_field: get the name of the id field

Description

In many places in the GenomicDataCommons package, the entity ids are stored in a column or a vector with a specific name that corresponds to the field name at the GDC. The format is the entity name (singular) "_id". This generic simply returns that name from a given object.

Usage

id_field(x)

# S3 method for GDCQuery id_field(x)

# S3 method for GDCResults id_field(x)

Arguments

x

An object representing the query or results of an entity from the GDC ("cases", "files", "annotations", "projects")

Value

character(1) such as "case_id", "file_id", etc.

Methods (by class)

  • GDCQuery: GDCQuery method

  • GDCResults: GDCResults method

Examples

Run this code
# NOT RUN {
id_field(cases())

# }

Run the code above in your browser using DataLab