I want to separate a column into two columns.
When I add the code below the console says the column was split.
> 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
The Problem is when I check the result the column wasn't split.
refine[,2]
# A tibble: 25 x 1
`Product code / number`
<chr>
1 p-5
2 p-43
3 x-3
4 x-34