[R] To add text in a matrix

carferper at alum.us.es carferper at alum.us.es
Thu Jan 14 11:04:27 CET 2010


Dear colleagues,

I would need to add text (some rows of information) in a matrix. For example, given this matrix


1 2 3
4 5 6
7 8 9

I would need to add this info:

THIS IS AN EXAMPLE
OF a 3x3 MATRIX
1 2 3
4 5 6
7 8 9


I have been looking for a function that works similar to "fopen" in matlab, but unfortunately I have not found It in R.

Thank you in advance for your help!

Carlos Fernandez



More information about the R-help mailing list