[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Join String Variables
Note that this won't work, as -egen- never -replace-s.
If you did want to overwrite -Var3-,
egen temp = concat(Var1 Var2 Var3)
replace Var3 = temp
Robert A Yaffee
> Try egen Var3=concat(Var1 Var2 Var3)
> > I just want to put two or more strings in one even if
> > missing values exist. For example,
> > obs Var1 Var2 Var3 Var3
> > 1 A B K ABK
> > 2 C C
> > 3 D ED BED
> > I have Var1 and Var2 and want to create Var3.
> > Thanks a lot.
* For searches and help try: