R Handout – Functions



R Handout – Functions and Smoothing

Simple function definitions in R: To define a function in R we use the command function. For example, we define the function test below that adds 2 to its argument:

test ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download