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
> http
> 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:
>
> >
> >
Apparently He who starts from 0 needn't be called unfortunate,
fortune('indexed')
baptiste
On 22 November 2010 20:59, Ben Bolker wrote:
> Bert Gunter 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
Bert Gunter 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 in
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
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 i
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
a
7 matches
Mail list logo