A video tutorial on how to write your own functions in R with RStudio. You should have watched the video on Conditional Statements and Loops first.
Please view in HD by clicking on the cog (bottom right corner).
Download the R script here: https://drive.google.com/open?id=1zqgWUbhf4ZnvtF-usbMBbXYg4HewskMk