Hi Rui,

yes, all the other rows have names! Thanks, works perfecty


2013/4/20 Rui Barradas <ruipbarra...@sapo.pt>

> Hello,
>
> It is possible, but do the other rows have names?
>
> x <- matrix(1:12, 4)
>
> x <- rbind(x, c(13:15))
> rownames(x)[5] <- "abcd"
> x
>
>
> Hope this helps,
>
> Rui Barradas
>
> Em 20-04-2013 10:58, Simone Gabbriellini escreveu:
>
>  Hello,
>>
>> 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?
>>
>> Best,
>> Simone
>>
>>


-- 
Simone Gabbriellini, PhD

PostDoc@DISI, University of Bologna
mobile: +39 340 39 75 626
email: simone.gabbriell...@unibo.it
academia.edu: http://goo.gl/7pq62

DigitalBrains srl
Amministratore
mobile: +39 340 39 75 626
email: simone.gabbriell...@digitalbrains.it
home: www.digitalbrains.it

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to