yoloHandleSubset: Subset a 'yoloHandle' object

Description Usage Arguments Value Examples

Description

yoloHandleSubset subsets the rowData or colData based on the indicies of i (rowData) and j (colData). Can also use the '[' operator as is common in R object subsetting.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
yoloHandleSubset(x, i, j)

## S4 method for signature 'yoloHandle,numeric,numeric'
yoloHandleSubset(x, i, j)

## S4 method for signature 'yoloHandle,missing,numeric'
yoloHandleSubset(x, i, j)

## S4 method for signature 'yoloHandle,numeric,missing'
yoloHandleSubset(x, i, j)

## S4 method for signature 'yoloHandle,missing,logical'
yoloHandleSubset(x, i, j)

## S4 method for signature 'yoloHandle,logical,missing'
yoloHandleSubset(x, i, j)

## S4 method for signature 'yoloHandle,logical,logical'
yoloHandleSubset(x, i, j)

## S4 method for signature 'yoloHandle,numeric,numeric,missing'
x[i, j, drop]

## S4 method for signature 'yoloHandle,missing,numeric,missing'
x[i, j, drop]

## S4 method for signature 'yoloHandle,numeric,missing,missing'
x[i, j, drop]

## S4 method for signature 'yoloHandle,logical,logical,missing'
x[i, j, drop]

## S4 method for signature 'yoloHandle,missing,logical,missing'
x[i, j, drop]

## S4 method for signature 'yoloHandle,logical,missing,missing'
x[i, j, drop]

Arguments

x

A yoloHandle object to be subset.

i

Numeric indices to be subset from rows.

j

Numeric indices to be subset from columns

drop

Other argument to pass to [

Value

Returns a subsetted yoloHandle object.

Examples

1
2
3
dat2 <- readRDS(system.file("rds", "dat2_ssh.rds", package = "yolo"))
d <- dat2[1:5, 3:4]
d <- yoloHandleSubset(dat2, 1:5, 3:4)

caleblareau/yolo documentation built on May 13, 2019, 11:01 a.m.