January 2010
Beginner
634 pages
19h 50m
English
In R, function objects are defined with this syntax:
function(arguments)body
where is a
set of symbol names (and, optionally, default values) that will be
defined within the body of the function, and arguments is an R
expression. Typically, the body is enclosed in curly braces, but it
does not have to be if the body is a single expression. For example,
the following two definitions are equivalent:body
> f <- function(x,y) x+y
> f <- function(x,y) {x+y}Read now
Unlock full access