R Tutorial

R Functions

Source: Bro Code

Functions

Functions group reusable logic behind a name you can call anywhere.

R
greet <- function(name) paste("Hello,", name)
Try it Yourself
Run this R example in your local environment or course sandbox.