Learn R Programming

bigstatsr (version 0.6.2)

rows_along: Sequence generation

Description

Similar to seq_along, it creates sequences of size nrow(x) or ncol(x).

Usage

rows_along(x)

cols_along(x)

Arguments

x

Any object on which you can call nrow and ncol.

Examples

Run this code
# NOT RUN {
X <- big_attachExtdata()
dim(X)
str(rows_along(X))
str(cols_along(X))

# }

Run the code above in your browser using DataLab