I am trying to segregate the name variable into two separate name and caste variables. (The segregation is to get a list of castes so as to classify them according to affirmative action policy in India).
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str77 farmersname "AJAJ" "IRFAN" "MANTI DEVI" "MD LATIF" "MD. JABIR" "SURESH KR. RAM" "Umesh sharma urf Umesh kumar singh" "ASHFAQUE" "HALIMUDDIN" "IMTIYAZ ANSARI" "MOHAMMAD RIZWAN" "MUJAHID ALAM" "SALAHUDDIN ANSARI" "JOHARA KHATUN" "MD .AKHTAR" "MD AKHATAR" "MD FAKHRUDDIN" "md ismail" "Md Nasim Akhtar" "URFAN" "VAKAR AHMAD" "Yoganand sah" "YOGANAND SAH" "Arun Kumar" "ISARAR" "KHURSHID ALAM" "MATIN" "MD MANJAR ALAM" "MD ZAHID HUSSAIN" "MD. SHOEB ALALM" "NIYAJ" "ARSHABA KHATUN" end
I can't understand if substring command can work here. Or does this require a different approach ?
Please help.
Thanks
Smriti
0 Response to Cut name variable into two variables to get caste
Post a Comment