Learn R Programming

BBmisc (version 1.13)

seq_row: Generate sequences along rows or cols.

Description

A simple convenience wrapper around seq_len.

Usage

seq_row(x)

seq_col(x)

Value

Vector of type [integer].

Arguments

x

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

Examples

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

Run the code above in your browser using DataLab