标签: r dplyr
我有一个数据集,如下所示:
df <- tribble( ~A, ~B, ~C, 20, 30, 40, )
现在,我想得到这样的东西:
df <- tribble( ~cat, ~point, "A", 30, "B", 40, "C", 50, )
我该怎么做?