[R] how to set the row name of a specific row
ruipbarradas at sapo.pt
Sat Apr 20 12:44:00 CEST 2013
It is possible, but do the other rows have names?
x <- matrix(1:12, 4)
x <- rbind(x, c(13:15))
rownames(x) <- "abcd"
Hope this helps,
Em 20-04-2013 10:58, Simone Gabbriellini escreveu:
> I am adding rows to a matrix using rbind() and I would like to also add a
> row name to the added row in order to do some sorting after the adding rows
> part is finished. is this possible?
More information about the R-help