You can use the Matrix package:

Matrix::Matrix(1:9, ncol = 3)

On Thu, Jan 14, 2010 at 8:04 AM,  <carfer...@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@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

______________________________________________
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