R has some internal help commands. These include help(functionname)
and
example(functionname)
. An example is below.
> help(sum)
sum package:base R Documentation
Sum of Vector Elements
Description:
'sum' returns the sum of all the values present in its arguments.
Usage:
sum(..., na.rm = FALSE)
...