entity_name: Get the entity name from a GDCQuery object

Description Usage Arguments Value Examples

View source: R/entity_name.R

Description

An "entity" is simply one of the four medata endpoints.

All GDCQuery objects will have an entity name. This S3 method is simply a utility accessor for those names.

Usage

1
2
3
4
5
6
7
entity_name(x)

## S3 method for class 'GDCQuery'
entity_name(x)

## S3 method for class 'GDCResults'
entity_name(x)

Arguments

x

a GDCQuery object

Value

character(1) name of an associated entity; one of "cases", "files", "projects", "annotations".

Examples

1
2
3
4
5
qcases = cases()
qprojects = projects()

entity_name(qcases)
entity_name(qprojects)

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