Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

seq-dim

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))

bigparallelr

Easy Parallel Tools

v0.3.1
GPL-3
Authors
Florian Privé [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.