【发布时间】:2014-07-27 11:36:49
【问题描述】:
我的问题类似于conditional string splitting in R (using tidyr)。但是,我需要拆分超过 2 列。如果数据集列是
cost
reed_cost
cost of living
reed cost
id gene_id locus
如何将其分成四列
col1 col2 col3 col4
cost
reed cost
cost of living
reed cost
id gene id locus
我尝试了链接中的解决方案,但无法正确解决。
【问题讨论】:
-
你真的需要这样拆分吗(初始列是空的)?