Displaying 1 result from an estimated 1 matches for "extendedlabel".
2009 Mar 18
1
Last char of a string in a list -> list of strings
...o is
1) Remove all the %!*0 characters
2) Get the last character of what remains for each string
3) Get a list, comparable to the one above, but with only one
character (so, the last three data points would become list(H,L,L)
I tried
> strsplit(gsub("[*_!%0]*","",TADescSub$ExtendedLabel,""),"")
but that gives me something like:
...
[[2136]]
[1] "H" "L"
[[2137]]
[1] "H"
[[2138]]
[1] "H" "L"
[[2139]]
[1] "L"
So, what am I doing wrong?
/Fredrik
-- 
"Life is like a trumpet - if you don't p...