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

st: RE: remove blanks in a string

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: remove blanks in a string
Date   Thu, 8 Apr 2004 16:07:20 +0100

I can't comment on Excel. 

replace strvar = subinstr(strvar," ","",.) 

[email protected] 

Oleksandr Shepotylo
>     I need to remove blanks in strings of the folloving structure:
> "xxxxxxxxx x",  where x is a simbol. It might be helpful to 
> mention that
> simbols are actually numbers.
>     I tried to do it in Excel that is supposed to be very 
> simple, but it
> deletes zeroes in the beginning or end of the strings even though I
> mentioned that they should be treated as text.

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index