# NOT RUN {
# create a new GDCQuery against the projects endpoint
gProj = projects()
# default facets are NULL
get_facets(gProj)
# set facets and save result
gProjFacet = facet(gProj)
# check facets
get_facets(gProjFacet)
# and get a response, noting that
# the aggregations list member contains
# tibbles for each facet
str(response(gProjFacet,size=2),max.level=2)
# }
Run the code above in your browser using DataLab