Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

function
r
help.search
communitycreator

What is the help.search() function in R?

Onyejiaku Theophilus Chidalu

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Overview

The help.search() function in R searches the help system.

This function searches for the help system for documentation matching. It does so for a given character string in the file name, title, alias, concept, and keywords entries.

Syntax

help.search(pattern, fields = c("alias", "concept", "title"),
            apropos, keyword, whatis)

Parameter value

The help.search() function takes the following parameter values:

  • pattern: This represents a character string to be matched. If given, the following arguments are ignored: apropos, whatis, and keyword.
  • fields: This represents a character vector that specifies the help database’s field to be searched. The entries for this parameter must be abbreviations of "title", "name", "concept", "keyword", and "alias" which correspond to the help pages’ name, title, topics, and concepts.
  • apropos: This represents a character string to be matched in the help pages’ titles and topics.
  • keyword: This represents a character string to be matched in the help pages’ `keywords’.
  • what is: This represents a character string to be matched in the help pages’ topics.

Example

# implementing the help.search() function 

help.search("print")
help.search(apropos = "print")
help.search(keyword = "hplot")
help.search('linear models')
Implementing the help.search() function

Explanation

  • Line 3: We use the help.search() function to return all the help pages with the titles or topics matching "print".
  • Line 4: Like in line 3, we use the apropos argument of the help.search() function to return all the help pages with the titles or topics matching "print".
  • Line 5: We use the keyword argument of the help.search() function to return all the help pages with the titles or topics matching "hplot".
  • Line 6: We use the help.search() function to return all the help pages with the titles or topics matching "Linear models".

RELATED TAGS

function
r
help.search
communitycreator

CONTRIBUTOR

Onyejiaku Theophilus Chidalu

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring