我想将一个列分成两列。Skript和控制台之间的区别
当我在控制台下面添加代码时表示该列已被拆分。
> separate(refine, "Product code/number", into = c("product code", "number"), sep = "-")
# A tibble: 25 x 9
company `product code` number address city country
name
* <chr> <chr> <chr> <chr> <chr> <chr>
<chr>
1 philips p 5 Groningensingel 147 arnhem the netherlands
dhr p. jansen
2 philips p 43 Groningensingel 148 arnhem the netherlands
dhr p. hansen
3 philips x 3 Groningensingel 149 arnhem the netherlands
dhr j. Gansen
4 philips x 34 Groningensingel 150 arnhem the netherlands
dhr p. mansen
5 philips x 12 Groningensingel 151 arnhem the netherlands
dhr p. fransen
6 philips p 23 Groningensingel 152 arnhem the netherlands
dhr p. franssen
存在的问题是,当我检查结果的列并没有被分割。
您有拼错的代码:将'',sep =“ - ”))''改为'...,)sep =“ - ”)' –
感谢您的回答。 – Hadsga
不过,我有同样的问题。 – Hadsga