Skip to content
Prev 326509 / 398502 Next

Splitting coordinates into two

Hello,

Try the following

x <- structure(...)


sp <- strsplit(as.character(x), ",")
G1 <- sapply(sp, `[`, 1)
G2 <- sapply(sp, `[`, 2)


Hope this helps,

Rui Barradas

Em 08-07-2013 14:49, Pancho Mulongeni escreveu: