hca_next.tbl_hca {hca}R Documentation

'tibble' representation of HCA query results

Description

projects(), samples(), files(), and bundles() return, by default, a 'tibble' representation of the query.

`hca_next()` returns the next 'page' of results, if available.

hca_prev() returns the previous 'page' of results.

Usage

## S3 method for class 'tbl_hca'
hca_next(x)

## S3 method for class 'tbl_hca'
hca_prev(x)

Arguments

x

a 'tibble' returned by projects(), samples(), files(), or bundles().

Value

hca_next() returns a tibble, with the same columns as x, containing the next 'page' of results.

hca_prev() returns a tibble with the same columns as x, containing the previous 'page' of results.

Examples

projects <- projects(size = 5)      # projects 1-5
next_projects <- hca_next(projects) # projects 6-10

hca_prev(next_projects)            # projects 1-5


[Package hca version 1.1.5 Index]