Learn R Programming

Nmisc (version 0.3.7)

seq_nrow: Creates a sequence based on the number of rows or columns

Description

Creates a sequence from 1 to the number of row or columns, respectively.

Usage

seq_nrow(x)

seq_ncol(x)

Arguments

x

a data frame or a matrix

Value

a vector of integers

See Also

seq