Been trying to figure out how to solve this for a moment without any results. I would like to transform the first dataframe to the second dataframe below. From "0000" to "01" which means I want to take away the two last numbers.
#1
Code Region Party
0176 US M
0176 US A
0176 US L
0176 US T
0176 US S
#With 8 000 more rows
#2
Code Region Party
01 US M
01 US A
01 US L
01 US T
01 US S
#With 8 000 more rows
I believe separate(Code) is something on the way. Worth to mention there are more regions that just US.