【发布时间】:2018-11-15 09:28:39
【问题描述】:
我有以下数据框。
x <- data.frame("Item" = c('Item1','Item1','Item2','Item2'), "Name" = c("This row and","the next should be grouped together","Also this row and","the next should be grouped together"))
我希望输出如下。
x2 <- data.frame("Item" = c('Item1','Item2'), "Name" = c("This row and the
next should be grouped together","Also this row and the next should be
grouped together"))
我有一个 10000 行的大型数据框,我是 R 新手。
【问题讨论】: