How to Write a Function in R: Beginning R Programming – Part 11

Functions allow us to reuse code, saving us from having to re-write the same code again and again. Learn how to write a function in R starting with the main components of a function and then creating a simple function in R.

Data Set
How to Install R

Part 10: 
Control Statements in R: For Loop, If, and Else

Start at the Beginning: 
“Hello World” Program

Full Series:
Beginning R Programming

More Data Science Material:
[Video] How to do the Titanic Kaggle competition in R
[Video] Web Scraping in R Part 1: Writing your Script
[Video Series] Introduction to dplyr
[Video Series] Introduction to text analytics in r


Rebecca Merrett
About The Author
- Rebecca holds a bachelor’s degree of information and media from the University of Technology Sydney and a post graduate diploma in mathematics and statistics from the University of Southern Queensland. She has a background in technical writing for games dev and has written for tech publications.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>