Question about :
I have a string vector foo:
>foo = c("1x2","3x4","5x6","7x8","9x10")
I split the individual strings over the “x” and stick the result in goo:
>goo = strsplit(foo, "x")
>goo
[[1]]
[1] "1" "2"
[[2]]
[1] "3" "4"
[[3]]
[1] "5" "6"
[[4]]
[1] "7" "8"
[[5]]
[1] "9" "10"
How do I extract the first and second ‘column’ from this list? (I want (1,3,5,7,9) and (2,4,6,8,10))