Data Science Desktop Survival Guide
by Graham Williams |
|||||
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.
## <0x562be2a01da0> ## Variables: ## * Date: <0x562bdd4e86d0> ## * Location: <0x562bdbc34c40> ## * MinTemp: <0x562be2a00ff0> ## * MaxTemp: <0x562be36619c0> .... |
## <0x562bec237760> ## Variables: ## * date: <0x562be0b6e880> ## * location: <0x562be1c36c80> ## * min_temp: <0x562be1d90010> ## * max_temp: <0x562be0e10110> .... |