Help and documentation
There is abundant documentation on R, a large part of it is accessible through the menu. You should
learn to use it.
Most of the facilities are also available through the command line, e.g. help(stem)
will display the help document on the stem function.
Functions to get help and information on functions and R objects:
- help (or ´?): Examples: help(stem), ?stem,
- help(search) or
?? Search on vague topics, e.g. ??outliers, help.search("robust")
??utils::log (search only in package utils
- apropos, similar but allows regular expressions for sophisticated searches.
- RsiteSearch RSiteSearch("outliers"); similar to ??, but search on the
R project worksite and presents results in a browser.
Although there is a lot of documentation, you should be aware that for many more complex statistical functions
you will have to read the publications quoted with the function, as the documentation only provides technical
informationon the function, but nothing at all on the statistical aspects of the tool.
To ease your learning of R, two other functions are quite useful:
- demo(name-of-the-demo) shows a demonstration of a particular function or library.
demo() lists all available demos. Note that many add-on packages
have demos, but before you can see them, you will have to activate the corresponding package.
- example(name-of-the-function) Most function documentation also show
examples, that can be accessed directly using the example() function, e.g.
example(stem) will run the example shown on the stem help page
R being an effort of a large community, the quality of the documentation of a function
varies, depending on its author's efforts.
Related documents