【发布时间】:2014-04-22 22:04:19
【问题描述】:
我在 excel 中有如下数据:
Terms Category Weight
email TV 1.00
acccount Email 12.0
accept Phone 3.00
我有其他矩阵,它的格式是:
Terms TV Email Phone Contact Information Support .....
achieve 1 0. 0 0 0 0
acquired 0 10.20 0 0 0 0
across 0 0 3.00 0 0 0
现在我想把上面的数据转换成上面的格式,比如
Terms TV Email Phone Contact Information Support .....
email 1 0. 0 0 0.0 0
acccount 0 12.0 0 0 0.0 0
accept 0 0 0 1.23 0 0
我想通过 R 中的程序来执行此操作。任何帮助将不胜感激。提前致谢。
【问题讨论】:
-
你不能提供一些数据吗?阅读this SO topic 会很有用
-
是的.. 但是怎么做呢?
-
@Paulo Cardoso 您不能按“条款”合并并获得 OP 想要的结果