Hi all,
I am having difficulties in knowing the exact number of values/letters of a strange variable? For example, the first observation contains 0 and T, and the second observation contains B, P and 0. So, the total values + letters in the first two observations are 0, B, P, and T. I would like to know all of these unique values and letters across observations. Any help is much appreciated. Thanks!
I am having difficulties in knowing the exact number of values/letters of a strange variable? For example, the first observation contains 0 and T, and the second observation contains B, P and 0. So, the total values + letters in the first two observations are 0, B, P, and T. I would like to know all of these unique values and letters across observations. Any help is much appreciated. Thanks!
Code:
clear input str80 var " 000000000000000000000000000000000000000000000000000000000000000000000000T" " BPPPPPPPP0000000000000000000000000000000000000000000000BPPPPPPPP000000000" " 0000000000000000000BPPPPPPPP000000000000000000000000BPPPPPPPP000000000000" " PPPPPPP00000000BPPPPPPPP0000000000000000000000000BPPPPPPPP000000000000000" " 000000000000000000BPPPPPPPP000000000000000000000BPPPPPPPP000000000000000B" " 00000000000000000000BPPPPPPPP0000000000000000000000BPPPPPPPP0000000000000" " 00000000000000000000000000000000000000BPPPPPPPP00000000000000000000000000" " 0000000000000000000000000000000000000000000000000000000000000TP00000000000" " PP0000000000000000000000000000BPPPPPPPP0000000000TPPPPPPPP0000BPPPPPPPP000" " 0000000000000000000000000000000NNNNNNNNNNNNNN000000BPPPPPPPP00000000000000" end
Comment