seq-dim: Sequence generation

rows_alongR Documentation

Sequence generation

Description

  • rows_along(x): seq_len(nrow(x))

  • cols_along(x): seq_len(ncol(x))

  • seq_range(lims): seq(lims[1], lims[2])

Usage

rows_along(x)

cols_along(x)

seq_range(lims)

Arguments

x

Any object on which you can call nrow() and ncol().

lims

Vector of size 2 (or more, but only first 2 values will be used).

Examples

X <- matrix(1:6, 2, 3)
dim(X)
rows_along(X)
cols_along(X)

seq_range(c(3, 10))


privefl/bigparallelr documentation built on Oct. 19, 2024, 12:35 p.m.