mapping: Query GDC for available endpoint fields

Description Usage Arguments Value Examples

View source: R/mapping.R

Description

Query GDC for available endpoint fields

Usage

1
mapping(endpoint)

Arguments

endpoint

character(1) corresponding to endpoints for which users may specify additional or alternative fields. Endpoints include “projects”, “cases”, “files”, and “annotations”.

Value

A data frame describing the field (field name), full (full data model name), type (data type), and four additional columns describing the "set" to which the fields belong–“default”, “expand”, “multi”, and “nested”.

Examples

1
2
3
4
5
6
map <- mapping("projects")
head(map)
# get only the "default" fields
subset(map,defaults)
# And get just the text names of the "default" fields
subset(map,defaults)$field

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