Decide if large objects should be copied
Arguments
- x
object (potentially of large size)
- .copy
Should the object be copied internally by
data.table::copy()
?NA
(by default) means that objects smaller than 1 GB are copied. If the size is larger, the argument must be set explicitly. SetTRUE
to make copies regardless of object size. This is recommended if enough RAM is available. If set toFALSE
, calculations might be carried out but the object will be changed by reference. IMPORTANT! This might lead to undesired consequences and should only be used if absolutely necessary!