The main capability of this package is the findFn function, which scans the "function" entries in Jonathan Baron’s "R site search" database and returns the matches in a data.frame of class findFn (Baron, 2009).
"To look for this data set, one might first try the help.search function. Unfortunately, this function returns nothing in this case:
No help files found with alias or concept or title matching
‘petal.length’ using regular expression matching.
> (PL <- findFn(‘Petal.Length’))
Think about a difficult question you would like to answer with R. If you are looking for general capabilities for a program design, this is a valuble tool to help you find what you are looking for. A look at The Comprehensive R Archive Network shows over 2000 active packages, a number that is quickly growing. A search through the pages of R packages allows you to view the statistics on the help documents with that phrase. This way you can make a good decision on where to start your work. In addition, if you are preparing a talk on R, sos is a useful tool to identify the packages designed by the other speakers the audience.
Now suppose you conduct more than one search for variations on a phrase. Since the search result is an exact match to the search phrase, it may be useful to conduct more than one search and combine the outcomes. You can manipulate the search results like you can manipulate any other data frame. Suppose you are working on a project that requires analyzing financial derivatives. You can concatenate the results with a pipe | operator to create the union of the two data frames:
> fd <- findFn(‘financial derivative’)
> fo <- findFn(‘financial option’)
> fdo <- fd | fo
The sos package is available from your favorite CRAN mirror now. The code above is described in depth in a vignette:
Spencer Graves will discuss search capabilities in R, as well as good practices in package development and remote collaboration, on September 15, 2010 for the San Francisco Bay Chapter of the Association for Computing Machinery. Be sure to pencil in the date. Time and Location are to be determined.