我想將一個列分成兩列。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