Getting help in R

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "As stated in Introduction to R, '''''R''''' has an excellent help system implemented in the core or in the respective packages, but also a very active community sharing ex...")
 
 
(5 intermediate revisions by one user not shown)
Line 2: Line 2:
 
using the ''help(function-name)'' function or ''??function-name'' or ''??procedure-name''. The result of this code is a detailed description of the function, with the necessary arguments and also bibliography. As an example, the following code produces the help  
 
using the ''help(function-name)'' function or ''??function-name'' or ''??procedure-name''. The result of this code is a detailed description of the function, with the necessary arguments and also bibliography. As an example, the following code produces the help  
 
information showed below.
 
information showed below.
<< eval=FALSE>>=
+
<source lang="rsplus">
 
help(mean)
 
help(mean)
@
+
</source>
 +
 
 +
[[File:Getting help.jpg|900px|thumb|center|Figure 1: Help output for the ''mean()'' function in '''''RStudio''''']]
 +
 
 +
[[Category:Introduction to R]]

Latest revision as of 09:54, 23 April 2015

As stated in Introduction to R, R has an excellent help system implemented in the core or in the respective packages, but also a very active community sharing expertise on how to implement functions, or even sharing scripts. The help for a given function or procedure can be called by using the help(function-name) function or ??function-name or ??procedure-name. The result of this code is a detailed description of the function, with the necessary arguments and also bibliography. As an example, the following code produces the help information showed below.

help(mean)
Figure 1: Help output for the mean() function in RStudio
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export