Skip to content
Prev 22707 / 63424 Next

Subsetting a vector in C

On 11/1/2006 7:48 AM, Sean Davis wrote:
No, there's no way to do that.  R functions can assume they have unique 
access to the objects they work on.  (There are some optimizations which 
mean they sometimes avoid making copies, but the semantics are such that 
they should be able to act as though they have their own copies.  There 
are a couple of exotic exceptions to this rule, but it applies to 
numeric vectors.)

Duncan Murdoch