Learn R Programming

BBmisc (version 1.10)

seq_row: Generate sequences along rows or cols.

Description

A simple convenience wrapper around seq_len.

Usage

seq_row(x)
seq_col(x)

Arguments

x
[data.frame | matrix] Data frame, matrix or any object which supports nrow or ncol, respectively.

Value

Vector of type [integer].

Examples

Run this code
data(iris)
seq_row(iris)
seq_col(iris)

Run the code above in your browser using DataLab