[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: concat num var
You don't say what you need this for; however,
if the end result does not have to be numeric,
I strongly recommend first changing each
variable to a string and then concatenating.
"Wentworth, Seyda" wrote:
> What is the easiest way to concat 4 numerical variables, each of various
> lengths (3-9). I tried :
> egen newvar=concat(var1 var2 ...)
> but got a newvar (16 to 18 digits) displayed in exponential format when it's
> longer than 16 digits, which I don't want. I tried to change the storage
> type and display format but wasn't able to see all 17 or 18 digits.
* For searches and help try: