Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

R sort matrix

# M1 is the matrix to sort, based on column 1
M1[order(M1[,1],decreasing=FALSE),]
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #R #sort #matrix
ADD COMMENT
Topic
Name
7+3 =