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

st: RE: Re: RE: RE: Re: generating a string from floats


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: RE: RE: Re: generating a string from floats
Date   Wed, 30 Oct 2002 08:18:59 -0000

Kompal Sinha

> > Just Curious: Is there a single command to do the exactly opposite
> > thing:-splitting the string in subparts.

Scott Merryman

> Typing "findit split string" brings up:
>
>
> FAQ     . . . . . . . . . . . . . . . . Splitting a string
> variable into parts
>                 http://www.stata.com/support/faqs/data/splitstr.html
>
> split from http://fmwww.bc.edu/RePEc/bocode/s
>     'SPLIT': modules for splitting string variables into
> parts / split splits
>     a string variable into one or more string variables /
> based on one or more
>     parse strings, by default blank space(s). It / is thus
> useful for
>     separating `words' or parts of a string / variable.  /

As Scott pointed out, information is a step away using -findit-.

Briefly, the FAQ explains an approach from first principles,
while -split- (on SSC) is a command available for Stata 7.

In addition, -strparse- (first author Michael Blasnik,
also on SSC) is available for those still using Stata 6.

Nick
[email protected]

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index