Suppose I have this data frame
id xy 0 a hello 0 b test 1 c hi 2 a hi 3 d bar
I want to concatenate x and y into one column like this, keeping my identifiers
id x 0 a 0 b 1 c 2 a 3 d 0 hello 0 test 1 hi 2 hi 3 bar
And what if I want to give a new name for the concat column? (e.g. 'x' to 'xy')
source share