R has a convenient help(...)
command that yields overview information about nearly any feature. Let us review this function:
help(...)
function without any arguments:> #learn more about the help command by using the help(...) function without any arguments > help()
help(...)
function. help(...)
function using the topic
argument:> #learn more about a specific subject using the help(...) function with a single argument > #the argument should specify the name of the subject that you are seeking help on > help(library)
We demonstrated how to use the help(...)
function to learn about R components using its built-in documentation system.
Our first use of help(...)
contained no arguments and therefore conveniently returned documentation on the help(...)
function itself. Most often, you will want to use the help(...)
function in coordination with a single argument that specifies the subject that you are seeking help on. For instance, we used the help(...)
function to learn more about the library(...)
function:
> help(library)
When executed, the help(...)
function opens the R Help window to display the documentation related to the identified subject. The R Help window will display a brief description of the topic along with sections explaining its usage, arguments, details, author(s), references, examples, and related subjects. All of R's help documentation follows this format, although each individual help page may not contain every section.
The help(...)
function is a fast and easy way for experienced users to retrieve information. It is best for users who are already familiar with specific R topics and need to be reminded of certain arguments or features. It is not always an optimal tool for learning how to do brand new things, but the built-in help system is the official resource for R documentation.
help()
function is executed without any arguments?a. It fails to execute and returns an error.
b. The R Help window displays documentation on the specified subject.
c. The R Help window displays documentation on the help(...)
function.
d. The R Help window displays a menu of selectable help topics.
help(...)
function is executed with a subject argument specified?a. It fails to execute and returns an error.
b. The R Help window displays documentation on the specified subject.
c. The R Help window displays documentation on the help(...)
function.
d. The R Help window displays a menu of selectable help topics.