Probably the most useful R function I’ve ever written
The function in question is
scriptSearch. I’m not much for superlatives — “most” and “best” imply one dimension, but we live in a multi-dimensional world. I’m making an exception.
The statistic I have in mind for this use of “useful” is the waiting time between calls to the function divided by the human time saved by the call.
I wrote a version of this for a company where I do consulting. There are few days working there that I don’t have at least one bout with it. Using
scriptSearch can easily save half an hour compared to what I would have done prior to having the function.