search for: i_readoutliers

Displaying 1 result from an estimated 1 matches for "i_readoutliers".

2005 Aug 29
1
Question about SET_LENGTH
...o the new vector. That is what I was going to do until I saw the SET_LENGTH macro. Does this macro effectively take care of the memory? Is this an acceptable use of the macro? The code works, but I dont want any lurking memory problems. PROTECT(outliers = NEW_INTEGER(cel.GetNumOutliers())); if (i_readOutliers != 0) { if (noutlier == 0) { outliers = R_NilValue; } else if (noutlier < cel.GetNumOutliers()) { SET_LENGTH(outliers, noutlier); } } Thanks as always! jim