[R] To add text in a matrix
Henrique Dallazuanna
wwwhsd at gmail.com
Thu Jan 14 13:04:57 CET 2010
You can use the Matrix package:
Matrix::Matrix(1:9, ncol = 3)
On Thu, Jan 14, 2010 at 8:04 AM, <carferper at alum.us.es> wrote:
> 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
>
> ______________________________________________
> R-help at 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.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list