Hello, I am using Parliamentary Constituency codes (variable name _pcon) in my dataset which begin with either E, S, N, W dependent on if the constituency is in England, Scotland, Northern Ireland or Wales respectively. The variable type is a string. I have made several attempts to destring the variable in the usual way however have been unsuccessful. I suspect this is because of the letter at the start of each observation? I was wondering whether there are possibly any suggestions as to overcome this? Many thanks.
Related Posts with Is it possible to destring a variable which starts with a letter?
Synth: How to save and further process the results (matrices)?Hello together. I come up with a new beginner question and hope for your ideas / advise / support. …
Transpose Data from Wide to LongHello, I am interested in making a basic transposition of my data so that the columns becomes the ro…
Extract year, quarter, month, week, dayDear All, I have a string date-second variable from which I need to extract year, quarter, month, w…
Spatial Model - "Effects" option produces incorrect resultsThere seems to be an issue with the "effects" option when using xsmle. "Effects" provides direct, in…
Cross sectional regression modified Jones and estimates of coefficientDear Statalisters, I would much appreciate your help with the following problem, i have to run a m…
Subscribe to:
Post Comments (Atom)
0 Response to Is it possible to destring a variable which starts with a letter?
Post a Comment