Displaying 1 result from an estimated 1 matches for "446828_854736".
2010 May 06
2
splitting character strings and converting to numeric vectors
...hars). Each element is
structured as a set of digits, then an underscore, then more digits, e.g:
> data.frame(head(as.character(XY)))
head.as.character.XY..
1 -448623_854854
2 -448563_854850
3 -448442_854842
4 -448301_854833
5 -448060_854818
6 -446828_854736
I simply need to separate the two sets of digits from each other and assign
them into new columns. The closest I've been able to get is by:
> test=t(as.matrix(data.frame(head(strsplit(as.character(XY), "\\_")))))
> test
[,1] [,2]
c...448623.......