Hello, I am wondering if there is a way in Stata where you can extract both numbers and strings. I want to create a new variable that extracts everything that contains numbers and a "G". For example the new variable should contain 300G and 2x150G (see picture).
Related Posts with Extract numbers and strings
Marginsplot: two groups with 10 study years - no intersection of CI and very narrow 95% CIsHi all, Since I am not very familiar with the margin analysis, so it will be really appreciated if …
Variable generation (newbie)Hi all, Thanks for considering my question. I am quite new to Stata. I am trying to get rid of cer…
match email across multiple datasetsHi, I have three datasets with master data (userid, names, email addresses, salary etc) data1 (emai…
Identify values that occur only onceHi, Hopefully a simple question for you. I have a large data set on transactions, and I need to ide…
Variable labelling using loopHi, I am dealing with commodity-level price data. I have price data of around 800 commodities. Commo…
Subscribe to:
Post Comments (Atom)
0 Response to Extract numbers and strings
Post a Comment