Write a Function

You’ll learn how to create a simple function in R

This tutorial will teach you the basics of R. It is not necessary to have any prior programming experience.

A function is a reusable code where we want to apply the same code to different inputs. This saves you from having to write the same code again and again where you only need to change the inputs but the functionality, or the code, is the same we discussed using pre-built functions in R but have not yet discussed creating your own custom function in R

To get started watch the video

That completes our introduction to the R series. You’re now ready to hit the ground running the first day of the Bootcamp but remember any new skill requires some practice, so revise these learning exercises if you need.

We look forward to building up your data science skills with you.