On 6/19/05, Rob Lopaka Lee <[EMAIL PROTECTED]> wrote:
> I'm interfacing to C code that uses 1-based indexing on arrays -- it
> ignores the zeroth element. Thus, input vectors from R must be moved up
> one, and output arrays must be moved down one.
>
> What is the best way to deal with this using
I'm interfacing to C code that uses 1-based indexing on arrays -- it
ignores the zeroth element. Thus, input vectors from R must be moved up
one, and output arrays must be moved down one.
What is the best way to deal with this using R internal code?
My current approach is:
For an input R vector