摘要: 需求 一个数据框一列或多列中有重复行,如何将它的重复行转化为多列?即本来两列一对一的关系,如何转化为一对多的关系?普通的spread函数实现较为麻烦。 示例数据如下: Item Value Apricot 4 Apricot 2 Apricot 5 Banana 4 Carrot 7 Carrot 阅读全文
posted @ 2021-04-14 16:02 生物信息与育种 阅读(759) 评论(0) 推荐(0) 编辑