I have some data, now I have to count the number of transitions from alphabetic to numeric OR from numeric to alphabetic.
dd <- c(text="S4FDD-S4DF5D_S54F4SDF4","eDC54E_EG5SF3543+TDX32RF","CVB5+5VN7NLC2_3LM70LCM8","1VPLF3LPD5P6OK7POD8KP9OASD9POA0")
Eg. in dd[1]
:
S4FDD-S4DF5D_S54F4SDF4 == 6 (Alphabetic to number Count)
&
== 5 (Number to Alphabetic Count)
I tried by using this function, but failed :
stri_count_boundaries(dd, type="character")