Learn R Programming

GenomicDataCommons (version 1.3.4)

response: Fetch GDCQuery metadata from GDC

Description

Fetch GDCQuery metadata from GDC

Usage

response(x, ...)

# S3 method for GDCQuery response(x, from = 0, size = 10, ..., response_handler = jsonlite::fromJSON)

response_all(x, ...)

Arguments

x

a GDCQuery object

...

passed to httr (good for passing config info, etc.)

from

integer index from which to start returning data

size

number of records to return

response_handler

a function that processes JSON (as text) and returns an R object. Default is fromJSON.

Value

A GDCResponse object which is a list with the following members:

  • results

  • query

  • aggregations

  • pages

Examples

Run this code
# NOT RUN {
# basic class stuff
gCases = cases()
resp = response(gCases)
class(resp)
names(resp)

# And results from query
resp$results[[1]]

# }

Run the code above in your browser using DataLab