search for: exual

Displaying 1 result from an estimated 1 matches for "exual".

Did you mean: equal
2009 Jun 26
4
How do I get just the two last tokens of each string in a vector?
...silly question on the list, but I seem to have made my life complicated by going into string manipulation in vectors. What I need is to get the last part of a sting (the two last tokens, separated by a space), and of course, this should be done for all strings in a vector, creating a new vector of exual size. So, a <- c(" %L H*L L*H H%", "%L H* H%", "%L L*H %", "%L L*H %" ) should be made into a vector c(" L*H H%", "H* H%", "L*H %", "L*H %" ) I have tried strsplit, but it seems to produce a structure I c...