I have a data frame that looks something like this
dput(head(data.frame(head(data, 10))))
structure(list(columns = c(" 873372.97240901832 1027036.2826745831 -70115.084934771265",
" 965481.29235509655 939652.10830702272 -86022.028960607044",
" 1064430.7931216138 823466.6941767697 -106722.49170664093",
" 1157212.3898099209 684973.42778737482 -119041.53937019428",
" 1231967.9138633562 540785.35503704555 -110933.57917522889",
" 1281645.9293598456 415675.65857948799 -84246.416065295387")), .Names = "columns", row.names = c(NA,
6L), class = "data.frame")
columns
1 873372.97240901832 1027036.2826745831 -70115.084934771265
2 965481.29235509655 939652.10830702272 -86022.028960607044
3 1064430.7931216138 823466.6941767697 -106722.49170664093
4 1157212.3898099209 684973.42778737482 -119041.53937019428
5 1231967.9138633562 540785.35503704555 -110933.57917522889
6 1281645.9293598456 415675.65857948799 -84246.416065295387
How do I get these 3 values in 3 different columns? I have been using strspilt
, but it is rounding my values. I need to maintain precision. Unfortunately, I am unable to spilt these in the reading in of the file.