Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: question regarding tokenize


From   "JP Azevedo" <jp.statalist@gmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: question regarding tokenize
Date   Tue, 15 Apr 2008 20:07:52 -0300

Dear all,
I would like to know if there is any way to find out in how many tokens a
particular string was devided using the tokenize command. And if it is
possible to ommit the parse character.

local str "A strange++strin^+Mexico+Chile"
tokenize `str', parse("+")
di "1=|`1'|, 2=|`2'|, 3=|`3'|, 4=|`4'|, 5=|`5'|"

Thanks,
JP

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