12) Use the help() function to explain a function

This Blog entry is from the Getting Started in R section in Learn R.

If using RStudio, navigating to the documentation via the help pane is by far the easiest and most intuitive means to access help.  Taking the output of functions recalled in previous Blog entries,  navigation to help can be triggered by invoking the help function.

To navigate to help,  click on the console input cursor:




Press the Enter key to execute the line of script:


While operating in RStudio,  the help will be displayed in the dedicated help pane.  If operating in the console,  the experience would be that the same text is written out to the console in text only.  It follows that help() exists for the purposes of making help and documentation available universally in R.

8) Review Help and Documentation.

This Blog entry is from the Getting Started in R section in Learn R.

In the packages pane a list of all packages installed has been presented. Having followed previous Blog entries we know that ggplot2 is now installed.  It is customary for packages to carry good documentation,  which can be accessed by clicking on the hyperlink overlaying the package name:


Clicking on the link immediate navigation to the packages documentation takes place:


This feature provides a more intuitive means to navigate to documentation for functions. In this example,  scroll down and clock on the function link autoplot:


It can be seen that the documentation is displayed, navigating away from the index.