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: Wishlist for Stata 13 - index()
From
"Li Chuntao (Tony)" <[email protected]>
To
[email protected]
Subject
st: Wishlist for Stata 13 - index()
Date
Thu, 6 Jun 2013 11:07:46 +0800
Dear Listers
The string function index(s1,s2) is quite useful and still usable in
Stata12, which returns the position of the first character of s2 if it
can be found in s1, and zero otherwise. Unfortunately, this function
is no longer listed in manual and her helps are also missing. New
users have to use indexnot(), which is not straight forwardly defined
and many user may find it quite strang.
Following is the output of some indexnot() and i actually totally lost
with them;
. di indexnot("d", "abcdefg")
0
. di indexnot("abcdefg", "a")
2
. di indexnot("abcdefg", "c")
1
. di indexnot("abcdefg", "d")
1
. di indexnot("abcdefg", "s")
1
. di indexnot("d", "abcdefg")
0
. di indexnot("a", "abcdefg")
0
I suggest Stata 13 to keep the index() function, if do not want to
drop indexnot()
Best
Chuntao
*
* 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/