Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: how to generate sevaral new variables


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: how to generate sevaral new variables
Date   Thu, 10 Oct 2002 17:40:03 +0100

Lee Chuntao
> 
>           I have a variable of the following style:
> 
>           variable 
>            name1/age1/salary1
>            name2/age2/salary2
>            name3/age3/salary3
>            name4/age4/salary4
> 
> I want to generate 4 new variables, say, name age and salary
> 
> can you give me some advice?

I am not clear on what the problem is. If you have 
a single composite string variable, then check 
out -split- on SSC. 


Nick 
n.j.cox@durham.ac.uk 


*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index