Skip to content
Prev 170022 / 398506 Next

error in my previous message

i'm sorry. i had an error in my previous code because i left out a 
letter in the rownames.
while fixing that, i also found a solution. so i'm sorry for the 
confusion.

below is my fix.

temp2 <- matrix(rnorm(10),nc=1,nrow=10)
rownames(temp2) <- c("a","b","c","d","e","f","g","h","i","j")
print(temp2)
temp2 <- as.matrix(temp2[order(temp2[,1,drop=FALSE]),])
print(temp2)
On Wed, Feb 11, 2009 at 1:18 AM, markleeds at verizon.net wrote: