Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go

Effect on Data Storage

20180721 When the names of the variables within a dataset are changed R does not make a complete new copy of the dataset. Instead, the actual data in the column remains in tack whilst the variable itself (ds) references a new memory location where the new variable names get noted. The underlying data within the table is unaffected.

location(weather)

## Warning: `location()` is deprecated as of dplyr 1.0.0.
## Please use `lobst::ref()` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_warnings()` to see where this warning was generated.

## <0x55ac47f65ac0>
## Variables:
##  * Date:          <0x55ac3ba4b7a0>
##  * Location:      <0x55ac4759f2f0>
##  * MinTemp:       <0x55ac47f64d10>
##  * MaxTemp:       <0x55ac441c5d30>
....

location(ds)
## <0x55ac4388ef80>
## Variables:
##  * date:            <0x55ac3f9464e0>
##  * location:        <0x55ac405b6050>
##  * min_temp:        <0x55ac40bdc900>
##  * max_temp:        <0x55ac407d2a40>
....


Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.