I have a DF like so:
(Intercept) W Q
1 0.09282078 2.370789 -0.2478352
2 0.11608078 1.890222 -0.3134176
3 0.09899802 1.764213 -0.1406203
how can I reformat it in dplyr to look like this:
Feature coeff
1_intercept 0.09282078
1_W 2.370789
1_Q -0.2478352
2_intercept 0.11608078
2_W 1.890222
2_Q -0.3134176
3_intercept 0.09899802
3_W 1.764213
3_Q -0.1406203