LE
OF a 3x3 MATRIX
A B C
A 1 2 3
B 4 5 6
C 7 8 9
Larry Hotchkiss
- Original Post -
Message: 7
Date: Thu, 14 Jan 2010 11:04:27 +0100
From:
To: r-help@r-project.org
Subject: [R] To add text in a matrix
Message-ID:
Content-Ty
In R, see ?connectionfor information about functions similar to
matlab's fopen.
If what you're trying to do is write information and the matrix to a
file, then you can at least get started with something along the
lines of:
cat('This is my information\nand a second line of it\n',file
You can also use the comment() function to add comments to any kind of R
object.
Matthieu Dubois
__
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
You can use the Matrix package:
Matrix::Matrix(1:9, ncol = 3)
On Thu, Jan 14, 2010 at 8:04 AM, 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
On 14-Jan-10 10:04:27, 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
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,
6 matches
Mail list logo