When I copy a data.table and modify the new one the original one gets altered. Is this a normal behaviour?
dt = data.table(zone=1:5, pc=11:15)
dtt = dt
dtt[, pc := pc*2 ]
dtt
zone pc
1: 1 22
2: 2 24
3: 3 26
4: 4 28
5: 5 30
dt
zone pc
1: 1 22
2: 2 24
3: 3 26
4: 4 28
5: 5 30
I have no problem when creating the new data.table more explicitely: dtt = data.table(dt)