我的问题类似于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
我尝试了链接中的解决方案,但无法正确解决。