Re: [Rd] implementation of NULL in vectors

2009-01-03 Thread Prof Brian Ripley
On Sat, 3 Jan 2009, Mark Rosen wrote: All, I was wondering if someone could point me to the location of the code in R that supports NULL values in vectors. I'm curious as to how you implemented them. We don't allow NULL in atomic vectors. The 'R Internals' manual discusses such implementatio

[Rd] implementation of NULL in vectors

2009-01-03 Thread Mark Rosen
All, I was wondering if someone could point me to the location of the code in R that supports NULL values in vectors. I'm curious as to how you implemented them. The only possible solution to me seems that for a double [], you need to keep a parallel bool [] that tells you whether the value is nu