Creates a copy of the object.
Usage
clone(x)
# S3 method for class 'Container'
clone(x)
# S3 method for class 'dict.table'
clone(x)
Examples
co = container(1, 2, 3)
co2 = clone(co)
co == co2
#> [1] TRUE
d = dict.table(a = 1:2, b = 3:4)
d2 = clone(d)
ref_clear(d)
print(d2)
#> <dict.table> with 2 rows and 2 columns
#> a b
#> <int> <int>
#> 1: 1 3
#> 2: 2 4