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

Joshua Wiley jwiley.psych at gmail.com
Mon Nov 22 20:27:09 CET 2010


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 it is some problem you
are having, I can almost certainly promise you it will be easier for
us to show you how to approach it differently and index from 1 than to
change the underlying framework so you can index from 0.

Cheers,

Josh

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.



--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/



More information about the R-help mailing list