I have a string variable containing licence plates, names and dates separated by / . As in 122000200106_Cheyrmen, Murauwatpur Panchayat Pacs-02/11 where 11 is 2011, in 121900200198_Shiv Nath Prasad Sah-72/2007 2007 is 2007, and in 121500100430_Dinesh Poddar-02/93 93 is 1993. How can I extract the year in YYYY format? Any suggestions would help, thanks
Related Posts with Splitting strings
Reshaping data from wide to long panel-dataGood day, I recently reshaped my dataset from wide to long into balanced panel dataset. Clyde Schec…
Recoding Values of A Variable based on conditionsHello, I am stuck with a problem. I hope someone can help me to find the answer. The first part of t…
randomly choosing a sub-group of itemsI would like to generate a random 10 variables from a set of 42 variables and I wonder how i could d…
Multiple industry variablesHello, I'm using STATA 15, SE. I'm facing an issue, trying to come up with a way to control for in…
no room to add more variablesHi, I am using PSID data set. I believe it is a very large data set. Stata tells me: no room to add…
Subscribe to:
Post Comments (Atom)
0 Response to Splitting strings
Post a Comment