Displaying 2 results from an estimated 2 matches for "implementingreferences".
2007 Mar 14
1
allocVector reference
Hi,
I'm trying to write a function to return an R vector which points
directly to a contiguous subset of another vector, without taking a
copy. Since SEXPREC is a header followed by the data, rather than the
header plus a pointer to the data, I'm not sure what I'm trying to do is
possible. Is there a way of doing this? Similar in spirit to how the R
assignment "x=y" does
2003 Jul 23
1
Passing references to data objects into R functions
Hi.
I have the following question about reading from large data objects from
within R functions; I have tried to simplify my problem as much as
possible in what follows.
Imagine I have various large data objects sitting in my global
environment (call them "data1", "data2", ...). I want to write a
function "extract" that extracts some of the rows of a particular