I have a simple R question. This is my code:
gamma <- input_output gamma <- gamma[,downstr_tot := sum(value), by = .(country, downstr)]
It creates a column "downstr_tot" and adds it to the "gamma" dataset (which it should). However, it also creates that same column in the "input_output" datset (which it should not). Is that normal??