Hi -
I am a beginner to the R language. I have written the following matrix: 
Z.mat=matrix(c(2,2,2,1,1,1,3,2,1,6,5,4,9,1,1,2,3,2), nrow=6)
I would like to add a 4th column consisting of: 6, 9, 8, 15, 16, 17

I would also like to name each column a, b, c, d as well.

Thanks!
                                          
        [[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