count: provide count of records in a 'GDCQuery'

View source: R/response.R

countR Documentation

provide count of records in a GDCQuery

Description

provide count of records in a GDCQuery

Usage

count(x, ...)

## S3 method for class 'GDCQuery'
count(x, ...)

## S3 method for class '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()

# total number of cases
cases() %>% count()


Bioconductor/GenomicDataCommons documentation built on Jan. 30, 2024, 11:59 p.m.