[R] Is it possible to make a matrix to start at row 0?
Bert Gunter
gunter.berton at gene.com
Mon Nov 22 20:37:29 CET 2010
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 do it."
Cheers,
Bert
On Mon, Nov 22, 2010 at 10:23 AM, bogdanno <bodinsoul at gmail.com> wrote:
> I want to make the matrix to be indexed from row (column) 0, not 1
> Can I do that? How?
> Thanks
>
> ______________________________________________
> 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.
>
--
Bert Gunter
Genentech Nonclinical Biostatistics
More information about the R-help
mailing list