Re: [Rd] A possible improvement to apropos

From: Kurt Hornik <Kurt.Hornik_at_wu-wien.ac.at>
Date: Fri 15 Dec 2006 - 17:51:11 GMT

>>>>> Seth Falcon writes:

> Kurt Hornik <Kurt.Hornik@wu-wien.ac.at> writes:
>>>>>>> Robert Gentleman writes:

>>
>>> I would also, personally prefer some sort of approximate matching since 
>>> there are different ways to spell some words, and some folks abbreviate 
>>> parts of words.

>>

>> The same design has been employed by help.search for a long time, for
>> exactly the same reasons (albeit with slightly different agrep
>> defaults).
> I may not have spent enough time adjusting the behavior, but when I
> tried agrep for apropos, I found that I almost always got way too many
> hits and found the case-insensitive grep the right balance.

Have you tried the help.search design? It uses approximate matching only if the match string is long enough (no less than 5 characters, something slightly larger may be useful for apropos()).

-k



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Dec 16 09:07:49 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 15 Dec 2006 - 22:31:01 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.