Hello all,
When I create a matrix, is there a way to make it start at [0,0],
instead of [1,1]?
That way, a 2x2 matrix would go from [0,0] to [1,1], instead of [1,1]
to [2,2].
Best,
Guillaume
__
R-help@r-project.org mailing list
If you are willing to use character instead of numeric you can:
xx - matrix(1:4, 2, 2, dimnames = list(as.character(0:1), as.character(0:1)))
xx
0 1
0 1 3
1 2 4
xx[0, 1]
[1] 3
On Wed, Oct 15, 2008 at 9:29 PM, Guillaume Filteau [EMAIL PROTECTED] wrote:
Hello all,
When I create a matrix,
On 16/10/2008, at 2:29 PM, Guillaume Filteau wrote:
Hello all,
When I create a matrix, is there a way to make it start at [0,0],
instead of [1,1]?
That way, a 2x2 matrix would go from [0,0] to [1,1], instead of [1,1]
to [2,2].
First, see fortune(36).
Then, if you ***MUST***, install
3 matches
Mail list logo