Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: Wishlist for Stata 13 - index()

From   "Li Chuntao (Tony)" <>
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")
. di indexnot("abcdefg", "a")
. di indexnot("abcdefg", "c")
. di indexnot("abcdefg", "d")
. di indexnot("abcdefg", "s")
. di indexnot("d", "abcdefg")
. di indexnot("a", "abcdefg")
I suggest Stata 13 to keep the index() function, if do not want to
drop indexnot()


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index