Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Extract elements from string variables


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: Extract elements from string variables
Date   Wed, 8 Jul 2009 20:43:01 +0200

<>

***
help split
***


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Mittwoch, 8. Juli 2009 20:37
To: [email protected]
Subject: st: Extract elements from string variables


In the data set I have a string variable with the names of several people.
However, I want to look at the relationship across each individual, so I am
trying to separate the names.  

What I have done: expanded the observations based on how many individuals
are in each observation's string variable.  Labeled the duplicate
observations 1, 2, 3, etc. 

What I need now, is a command that will take the number in my duplicates and
take the corresponding individual's name with respect to its position in the
string variable, separated by a comma. 

Any insight would be helpful.

Thanks, 
Conor

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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