How can I split this column up after exporting?
I need to get each value in a row separated by a space as a separate column.
Currently I have:
V1
X 1111 1324.01 1258.00 5154836
X 1111 1324.01 1258.00 5154836
X 1111 1324.01 1258.00 5154836
X 1111 1324.01 1258.00 5154836
And this is what I want:
V1 V2 V3 V4 V5
X 1111 1324.01 1258.00 5154836
X 1111 1324.01 1258.00 5154836
X 1111 1324.01 1258.00 5154836
X 1111 1324.01 1258.00 5154836
I tried:
separate(col = V1, into = c("V2", "V3", "V4", "V5", "V6"), sep = " ")
and:
SPS_X1 <- SPS_X %>% strsplit(SPS_X," ")
but these did not work for what I need.
P.S. my data frame has >5000000 rows