wrap_altrep {Travel} | R Documentation |
Create a new ALTREP object from an R ALTREP, the new ALTREP object owns a data pointer. However, it is a dummy pointer in the sense that the data is not in the memory. The pointer can be operated as a normal pointer but the request of accessing the data will be send to the wrapped ALTREP object.
wrap_altrep(x)
x |
an ALTREP object |
A new ALTREP object
x <- 1:10 y <- wrap_altrep(x)