powered by
GDCQuery
Fetch GDCQuery metadata from GDC
response(x, ...)# S3 method for GDCQuery response(x, from = 0, size = 10, ..., response_handler = jsonlite::fromJSON)response_all(x, ...)
# S3 method for GDCQuery response(x, from = 0, size = 10, ..., response_handler = jsonlite::fromJSON)
response_all(x, ...)
a GDCQuery object
passed to httr (good for passing config info, etc.)
integer index from which to start returning data
number of records to return
a function that processes JSON (as text) and returns an R object. Default is fromJSON.
fromJSON
A GDCResponse object which is a list with the following members:
GDCResponse
results
query
aggregations
pages
# 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