selectSequences: Select Rows from Matrix by Sequences

Description Usage Arguments Examples

View source: R/utils.R

Description

Select Rows from Matrix by Sequences

Usage

1
selectSequences(mat, from = 1, to = 1, pad = NA)

Arguments

mat

matrix from which to select

from

vector of starting positions

to

vector of finishing positions

pad

value with which to pad short rows (default NA)

Examples

1
2
3
ma <- matrix(letters[1:18], nrow = 3, ncol = 6, byrow = TRUE)
    selectSequences(mat = ma, from = 1:3, to = 4:6)
    selectSequences(mat = ma, from = 1:3, to = 4)

CSJCampbell/WMTools documentation built on May 6, 2019, 9:26 a.m.