[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Reading the letters in a name up to a particular character in Stata 8.2
> apologies if this has been posted before and I missed it. I have a
> string variable which is the name of companies (fictitious example
> XYZ, International
> ABCDE, National
> DFTRER, Exports
> I want to keep only the first part of the company name (e.g. keep XYZ
> ABCDE DFTRER, etc). The obvious solution is to ask Stata to read the
> letters and chop off anything from the character "," onwards, but am
> not very sure which command to use in Stata 8.2 to be able to do
An almost identical problem cropped up on the list last week initiated by Heather Gold.
The various response should provide you with a solution, see...
ARC Epidemiology Unit, University of Manchester
"If your result needs a statistician then you should design a better experiment" -
* For searches and help try: