looking for a efficient solution for the below scenario.
Column should go as row Value for Locs
Input DF
tribble(
~id, ~NY, ~DC,
"111", "a,b,c", "xy,a,b"
)->d
Expecting Output as below
tribble(
~id, ~loc, ~prop,
"111", "NY", "a,b,c",
"111", "DC", "xy,a,b"
)->d1