Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: seperate text in a variable repeatedly across many variables


From   "Ben Ammar" <[email protected]>
To   [email protected]
Subject   st: seperate text in a variable repeatedly across many variables
Date   Fri, 25 Feb 2011 09:36:05 +0100

Hi everybody,

I'm new to Stata so please excuse if this question isn't the greatest:

I want to seperate a text (string) across several variables. In each variable (household_history_1 up to household_history_100) there's a semicolon. So I thought of:

.foreach household_history_* {
.split household_history_*, p(";")
.}

unfortunately Stata says "too many variables specified". Maybe the approach is entirely wrong. I'd be very thankful for any comments!

Thanks
Ben Ammar
-- 
Schon gehört? GMX hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://www.gmx.net/de/go/toolbar
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index