Functions
R has many functions that are included as part of the installation. In the first instance, let's look to see how we can work smart by finding out what functions are available by default.
In our last example, we used the split()
function. To find out more about the split
function, we can simply use the following command:
?split
As an alternative, we can use the following statement:
help(split)
It's possible to get an overview of the arguments required for a function. To do this, simply use the args
command:
args(split)
Fortunately, it's also possible to see examples of each function by using the following command:
example(split)
If you need more information than the documented help file about each function, you can use the following command. It will go and search through all the documentation for instances of the keyword:
help.search("split")
If you want to search the R project site from within RStudio, you can use the RSiteSearch
command. For example:
RSiteSearch("split")