[R] split a string a keep the last part
jun.shen.ut at gmail.com
Thu Aug 28 19:41:45 CEST 2014
I believe I am not the first one to have this problem but couldn't find a
relevant thread on the list.
Say I have a string (actually it is the whole column in a data frame) in a
format like this:
I would like to split the test string and keep the last part. I think I can
do the following
to keep the fifth part of the string. But this won't work if other strings
have more or fewer parts separated by '-'. Is there a general way to do it?
[[alternative HTML version deleted]]
More information about the R-help