Statalist


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

Re: st: question regarding tokenize


From   n j cox <n.j.cox@durham.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: question regarding tokenize
Date   Wed, 16 Apr 2008 00:24:40 +0100

See -tknz- on SSC.

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

JP Azevedo

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'|"

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