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]
Re: st: Another question regarding string variables
From
Steve Nakoneshny <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Another question regarding string variables
Date
Tue, 26 Feb 2013 21:14:30 -0700
There is a string function called -word- that will serve your purpose. See -h word- for more details.
Steve
Sent via carrier pigeon
On 2013-02-26, at 8:55 PM, "Michael Stewart" <[email protected]> wrote:
> Hi,
>
> I am sorry to keep bothering you regarding string variables
> I am trying to find if there is a function to split a string "Howard
> James R" --> "Howard" & ("James R")
> If I use Split, I would get Howard, James and R which is not what I want
> I want to split the string after the first word into two string
> variables first variable containing first word and second variable
> containing rest of the string
>
> --
> Thank you ,
> Yours Sincerely,
> Mike.
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/