我有一个看起来像这样的数据框
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
如何在3个不同的列中获取这3个值?我一直在使用strspilt
,但这是我的价值观。我需要保持精确度。不幸的是,我无法将这些内容泄漏到文件的阅读中。