sub-bed-ANY-ANY-ANY-method: Accessor methods for class 'bed'.

[,bed,ANY,ANY,ANY-methodR Documentation

Accessor methods for class bed.

Description

Accessor methods for class bed.

Usage

## S4 method for signature 'bed,ANY,ANY,ANY'
x[i, j, ..., drop = TRUE]

Arguments

x

A bed object.

i

A vector of indices (or nothing). You can use positive and negative indices, and also logical indices (that are recycled).

j

A vector of indices (or nothing). You can use positive and negative indices, and also logical indices (that are recycled).

...

Not used. Just to make nargs work.

drop

Whether to drop dimensions (to a vector) when a dimension is 1. Default is TRUE.

Examples

bedfile <- system.file("extdata", "example-missing.bed", package = "bigsnpr")
(obj.bed <- bed(bedfile))
obj.bed[1:5, 1]
obj.bed[1:5, 1:2]
typeof(obj.bed[1, 1])


privefl/mypack documentation built on April 20, 2024, 1:51 a.m.