I am trying to use gather function on the data but it's not giving the required output.
Sample raw data -
id listen_A listen_B speak_A speak_B
1 11 21 41 51
2 12 22 42 52
Required output -
id type listen_value speak_value
1 A 11 41
1 B 21 51
2 A 12 42
2 B 22 52
Thanks for the help.