Data Science Desktop Survival Guide
by Graham Williams |
|||||
Locating Datasets in Memory |
20200603 We can see that ds and weather reference the same dataset in memory using lobstr::ref() which shows actual memory addresses of the data.
ref(weather)
ref(ds)
This gets rather technical, but the strings of digits beginning with 0x are the actual memory addresses—that is, they are pointers to a direct location in our computer's memory. The 0x at the beginning of each identifies that a hexadecimal scheme is used, thus we see digits 0 to 9 and then the letters a, b, c, d, e, and f being used (16 digits). The addresses recorded for weather and ds, including the addresses where we find the actual variables (columns) within each dataset, are identical.
|