We search a number of functions and libraries during any project in R.

When searching on R console using ? (e.g. ?data.frame), or ?? (e.g. ??cluster), or apropos (e.g. > appropos(cluster)) do not return with the answers what you were looking for, what to do then?

I will suggest you to try “findFn()” which is available from the “sos” package on CRAN.

“findFn” can be thought of an alternative to ? or ?? or as an alias to “???”.

The limitation to use it is that because can’t pass in arguments in this function other than the function name that is being searched.

You can install the “sos” package from CRAN using

# install.packages(sos)
# Loading library

library(sos)


# Search for function "cosine"

findFn("cosine", maxPages = 2, sortby = "MaxScore")
## found 537 matches;  retrieving 2 pages, 40 matches.
## 2 
## Downloaded 35 links in 25 packages.

Here we have done the following: