Hello,
This is my first post, so please excuse me.
I have one variable with observations like this:
var1
^CTGO258068
^CTCH474369
^CTSY258074
^CTDG258075
^CTGC274785
^CTAC477646
BC477646
TC477646
And another variable like this:
var2
TM-FFHAPT
ORM-FFHAPT
VOX-FFHAPT
TOR
MOR
UPG-FFHAPT
1. How do I remove ^CT from var1 if they have ^CT as prefix and
2. How do I remove -FFHAPT from var2 if they have -FFHAPT at the end.
Many thanks,
0 Response to Drop last 7 characters from obsrevations if they have certain characters
Post a Comment