I have the following vector:
tmp3 <- c(\"1500 2\", \"1500 1\", \"1510 2\", \"1510 1\", \"1520 2\", \"1520 1\", \"1530 2\", \"1530 1\", \"1540 2\", \"1540
This should do it:
library(plyr) ldply(strsplit(tmp3, split = " "))[[2]]
If you need a numeric vector, use
as.numeric(ldply(strsplit(tmp3, split = " "))[[2]])