NOAA-EDAB / survdat

https://noaa-edab.github.io/survdat/
https://noaa-edab.github.io/survdat/
Other
2 stars 1 forks source link

Data table referencing #22

Closed slucey closed 3 years ago

slucey commented 3 years ago

One of the benefits of using data.table is that it does not copy an existing data.table but rather references it like a pointer in C. I noticed that this behavior can mess up the original data set when calculating a stratified mean if doing so more than once. The command data.table::copy should break this link.