Re: [Rd] Subsetting a vector in C

2006-11-01 Thread Duncan Murdoch
On 11/1/2006 7:48 AM, Sean Davis wrote: > I have a pretty simple question. I have an array of REALSXP allocated as: > > rsp = allocVector(REALSXP,n) > > and I simply want to pass subsets of rsp of size q (q< R function in C. Is there a way to subset rsp without creating a new REALSXP > vector

[Rd] Subsetting a vector in C

2006-11-01 Thread Sean Davis
I have a pretty simple question. I have an array of REALSXP allocated as: rsp = allocVector(REALSXP,n) and I simply want to pass subsets of rsp of size q (q