I have a variable receiving 3 types of results: 4-digit number, 3-digit number, and NA
For example
4412
4564
334
NA
7677
What I want is to get the first 3 digit as below
441
456
334
.
767
Could you please let me know how to make it? I think of generate a new variable but I am not sure how to make it.
Warm regards.
Related Posts with How to get the first 3 digit of a variable ?
Merge V-Dem with UCDPHi! I am currently working on my bachelors-thesis, where I will measure the impact of voilent confl…
Patterns for variable in stataHi, I have a dataset with a firm name variable, a year variable ( 2008-2018) and a product variable.…
time series: perform the same regression with different variablesHello everyone I have timeseries data containing the returns of an index and the returns of differe…
Save results after "collin" commandHello, i am currently working ob some multicollinearity diagnostics for my thesis. I am using the "…
-Ipolate- used and now need to fill in constant values before/afterHello, my dataset consists of the following variables: stock_cusip (identifier for every stock), md…
Subscribe to:
Post Comments (Atom)
0 Response to How to get the first 3 digit of a variable ?
Post a Comment