select_filter: Extract like dplyr::select, filter

Description Usage Arguments Value Author(s) See Also Examples

Description

These functions works like select and filter of dplyr package.

Usage

1
2
3
4
5
## S4 method for signature 'BAf'
select(.data, ...)

## S4 method for signature 'BAf'
filter(.data, ..., .preserve = FALSE)

Arguments

.data

an object of the BAf-class

...

Same as ... in select or filter in dplyr package. This is evaluated with sB(.data) or sI(.data), when select or filter is invoked, respectively.

Value

an object of the BAf-class that contains a part

Author(s)

Mun-Gwan Hong <mun-gwan.hong@scilifelab.se>

See Also

select

filter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(sba)
# the data of "T2" and "T3"
sba2 <- sba %>% select(id %in% c("T2", "T3"))
summary(sba2)

# the data of the samples on plate 2
sba3 <- sba %>% select(sba == "BA0")
summary(sba3)

data(sba)
# the data of the samples on plate 2
sba4 <- sba %>% filter(plate == "2")
summary(sba4)

# the data of cancer patients only
sba5 <- sba %>% filter(dis == "cancer")
summary(sba5)

Rundmus/BAf-R_package documentation built on May 18, 2020, 12:59 p.m.