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]
st: RE: Question on data manipulation
From
"charles zandoh" <[email protected]>
To
<[email protected]>
Subject
st: RE: Question on data manipulation
Date
Sat, 29 Oct 2011 22:20:53 +0100
You can also try replace cusip=substr(cusip,1,8)
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of William Pratt
Sent: Saturday, October 29, 2011 10:43 PM
To: [email protected]
Subject: st: Question on data manipulation
Dear Statalisters,
I have the following string data of 9 characters and would like to
drop the last value so that it becomes 8 characters. Thanks for your
consideration.
cusip
000360206 >>> 00036020
000360206 >>> 00036020
000360206 >>> 00036020
000360206 >>> 00036020
000360206 >>> 00036020
000361105 >>> 00036110
000361105 >>> 00036110
000361105 >>> 00036110
000361105 >>> 00036110
--
[email protected]
University of Texas-Pan American
College of Business Administration
Department of Finance and Economics
South Texas Border Health Disparities Center
o - 956.665.7937
f - 956.665.7310
*
* 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/
*
* 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/