Displaying 1 result from an estimated 1 matches for "pia2".
Did you mean:
pia
2012 Dec 11
5
Retain last grouping after a strsplit()
All -
I have a column of SiteNames:
SiteName
OYS-PIA2-FL-1
OYS-PIA2-LA-1
OYS-PI-LA-BB-1
OYS-PIA2-LA-10
...
[truncated]
and I want to include only the last few digits into a new column.
I tried
substr(data$SiteName, 13, 20)
but because some SiteName values are of a different length, the final
hyphen (i.e., "-") was included:
"1"...