[R] newbie- how to add a row to a matrix

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Wed Aug 17 23:42:23 CEST 2005


?rbind

Simone Gabbriellini wrote:
> dear list,
> if I have a matrix
> 
> s<-matrix(1:5, ncol=5)
> 
> how can I add another row with other data to that matrix?
> 
> thank you,
> simone
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list