Let DATA be an existing data frame object. I am creating a new COPY object, which is an exact copy of DATA, but it takes up a different place in memory and therefore does not indicate the original data frame.
I use the data.frame () function as follows:
> COPY<-data.frame(DATA)
I check if the memory addresses are the same or not using tracemem ():
> tracemem(COPY)==tracemem(DATA) > [1] FALSE
I think that is not enough.
source share