I'm trying to do some transformation on the variable TP_STATUS_REDACAO from the dataset called DFtest2. In order to preserve the original data, I have made a copy called DFtest.means.
Working on the Rnotebook, I've ran the following commands:
DFtest.means <- DFtest2 DFtest.means[, TP_STATUS_REDACAO := NA]
I've expected that only the column
DFtest.means$TP_STATUS_REDACAO would have been changed, however the column
DFtest2$TP_STATUS_REDACAO has also became
I have no clue about what's going on and I couldn't find an answer on the internet.
Could anyone shed some light on it for me?