Learn R Programming

agricolae (version 1.0-1)

dimnames.order: Order in rownames and colnames

Description

It orders the names of the rows and columns of a matrix.

Usage

dimnames.order(x)

Arguments

x
data.frame or Matrix

Value

  • xnumeric or alphanumeric

Examples

Run this code
library(agricolae)
data(soil)
rownames(soil)<-soil[,1]
soil<-soil[,-1]
soil<-dimnames.order(soil)
soil

Run the code above in your browser using DataLab