Finding functions in R

When looking for functions whose exact name is unknown

# Functions related to “shrinkage” methods
help.search(“shrinkage”)

Package sos does a great job in finding functions

install.packages(“sos”)
library(sos)
shrinkageResults <- findFn("shrinkage", maxPages = 1)
shrinkageResults
# This opens a webpage in your browser with the results

The table in the webpage created above have sortable columns.

# Sort on creation data of resultant packages
summaryObj <- summary(shrinkageResults)
pkgTable <- summaryObj$PackageSummary
pkgTable <- pkgTable[order(pkgTable$Date,decreasing=T),]

Many more R specific search options here

About these ads

About indiacrunchin
Any sufficiently advanced technology is indistinguishable from magic -- Arthur C. Clarke

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: