From: "Nick Cox" <n.j.cox@durham.ac.uk>
Reply-To: statalist@hsphsun2.harvard.edu
To: <statalist@hsphsun2.harvard.edu>
Subject: RE: st: how to merge two variables into one
Date: Sun, 27 Nov 2005 16:43:57 -0000
When you say merge, I guess you mean
concatenate.
Assumed that you have applied -trim()-,
right-alignment is a matter of format,
not of what the values are, nor of how
they are held informally.
You should read up the help on formats.
Nick
n.j.cox@durham.ac.uk
b. water
> i have two variables: studynames and yearofstudy e.g. Alshop
> 1981, Bell 1992.
>
> what i want to do is to merge the two variables such that:
> Alshop 1981
> Bell 1992
> i.e. somehow it is right-aligned in each cell.
>
> would be grateful for help in achieving this.
>
> platform: stata 8.2, os wxp pro sp2.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
_________________________________________________________________