Usage
count(x, ...)
# S3 method for GDCQuery
count(x, ...)
# S3 method for GDCResponse
count(x, ...)
Arguments
- x
a GDCQuery
object
- ...
passed to httr (good for passing config info, etc.)
Value
integer(1) representing the count of records that will
be returned by the current query
Methods (by class)
count(GDCQuery)
:
count(GDCResponse)
:
Examples
# total number of projects
projects() %>% count()
#> [1] 72
# total number of cases
cases() %>% count()
#> [1] 86394