Sunday, July 17, 2022

How to split variable that does not have spaces

Hi Everyone,

I would like to split (eg. Italy2019) into two variables (eg.country= Italy and year =2019).

Since there is no space, I could not do it.

Could someone please provide me information on how to split 'country' name and 'year' into two variable ?

My list:

country

Italy2019
Jamaica2010
Russia2012
.....

Thank you.

No comments:

Post a Comment