Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: string variable


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: string variable
Date   Fri, 28 Aug 2009 15:32:58 +0100

In particular, have you checked whether tabs are involved? 

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

Roy Wada

It's probably a non-space character. You should copy and paste one 
into the subinstr( ) function.

> replace bankname = subinstr(bankname, " ", "", .)
>
> which didn't work. I could encode the variable then single out the
> numeric value of the observations that I want to keep, but I was
> wondering if there was a non-manual way around this. If anyone has
> advice on this, I'd appreciate it.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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