Re: [Rd] Question about SET_LENGTH

2005-08-29 Thread Prof Brian Ripley
SET_LENGTH is in Rdefines.h (you did not say). It is a wrapper for x = lengthgets(x, n) and that will do what you want. HOWEVER, you have changed x and the object it points to, so you do need to worry about re-protection. So, I think that macro is rather dangerous (and it is not the on

[Rd] Question about SET_LENGTH

2005-08-29 Thread James Bullard
Hello all, thanks for all the help on the other issues. This one should be relatively straightforward. I have a vector of integers which I allocate to be the maximal size possible (meaning I'll never see more than cel.GetNumOutliers, but most likely I'll see less) therefore, I want to resize the ve