Functions
Definition with function, parameters, return (or last expression) and calling.
Simple enough for a 5-year-old to understand
Define a function
defined with function and assigned to a variable. The last expression is returned automatically.
square <- function(x) { return(x * x)}cat(square(5), "\n", sep="")