[R] Is it possible to make a matrix to start at row 0?

2010-11-22 Thread bogdanno
I want to make the matrix to be indexed from row (column) 0, not 1 Can I do that? How? Thanks __ 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

Re: [R] Is it possible to make a matrix to start at row 0?

2010-11-22 Thread Joshua Wiley
Hi, You can do it, but it would be very difficult (think reworking all indexing yourself) and you probably should not even try (nothing else that was expecting indexing to work as the R gods intended it to would work once you had done your rework). What has lead you to want to index from 0? If

Re: [R] Is it possible to make a matrix to start at row 0?

2010-11-22 Thread Bert Gunter
Eh??? Why would you want to do that?? (R isn't C). So the simple answer is: you can't. The other answer is, well of course you sort of can via, e.g. for(i in 0:9) { z - myMatrix[i+1,] ... } But as Josh said, I think this falls into the class of You are just asking for trouble, so don't

Re: [R] Is it possible to make a matrix to start at row 0?

2010-11-22 Thread Ben Bolker
Bert Gunter gunter.berton at gene.com writes: Eh??? Why would you want to do that?? (R isn't C). So the simple answer is: you can't. The other answer is, well of course you sort of can via, e.g. for(i in 0:9) { z - myMatrix[i+1,] ... } But as Josh said, I think this falls

Re: [R] Is it possible to make a matrix to start at row 0?

2010-11-22 Thread baptiste auguie
Apparently He who starts from 0 needn't be called unfortunate, fortune('indexed') baptiste On 22 November 2010 20:59, Ben Bolker bbol...@gmail.com wrote: Bert Gunter gunter.berton at gene.com writes: Eh??? Why would you want to do that?? (R isn't C). So the simple answer is: you can't.

Re: [R] Is it possible to make a matrix to start at row 0?

2010-11-22 Thread Mike Marchywka
To: r-h...@stat.math.ethz.ch From: bbol...@gmail.com Date: Mon, 22 Nov 2010 19:59:23 + Subject: Re: [R] Is it possible to make a matrix to start at row 0? Bert Gunter gene.com writes: Eh??? Why would you want to do that?? (R isn't C).

Re: [R] Is it possible to make a matrix to start at row 0?

2010-11-22 Thread David Stoffer
bogdanno-2 wrote: I want to make the matrix to be indexed from row (column) 0, not 1 Can I do that? How? Thanks __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide