library(cmu202)

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.align = "center",
  warning = FALSE,
  message = FALSE,
  echo = FALSE,
  fig.width = 7,
  height = 6
)

Each R function and package has built-in documentation to provide guidance about each function. Documentation is included with every package. While we direct you to vignettes in 36-202, for more advanced functionality the help pages are the first source of guidance.

One may access the help documentation by using the following command (for an object called function, which may be anything):

help(function)

Help may also be accessed by the "Help" pane in RStudio and searching for your function, package or data frame. In the image below, the button indicated by the yellow arrow will open the help tab, while one can see the command used to open the page in the red box.

Help in Action



frank113/cmu202 documentation built on July 17, 2020, 9:31 p.m.