select.HCAExplorer: Select columns to display upon showing the object

Description Usage Arguments Value See Also Examples

View source: R/filter-utilities.R

Description

An HCAExplorer object is intitated with certain default columns being displayed upon showing the object. This method allows a user to display columns other than the default columns when displaying the object.

Usage

1
2
## S3 method for class 'HCAExplorer'
select(.data, ...)

Arguments

.data

An HCAObject to filter.

...

Columns to be displayed.

Value

An HCAExplorer object with the applied filter.

See Also

HCAExplorer for the HCAExplorer class, resetSelect for how to reset the selection applied to an HCAExplorer object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 ## Intiate an HCAExplorer object
 x <- HCAExplorer()
 x

 ## Use the results() method to display which columns are present.
 results(x)

 ## Select the 'projects.projectTitle' and 'samples.organ' columns.
 x <- x %>% select('projects.projectTitle', 'samples.organ')
 x

 ## Use resetSelect() to return to the original selection
 x <- resetSelect(x)
 x

Bioconductor/HCAExplorer documentation built on Feb. 13, 2021, 7:07 a.m.