Simple play icon Course
Skills

Understanding R Function Scoping and Closures

by Justin Flett

R is a widely used programming language for statistical computing. This course will teach you the fundamentals of understanding and creating your own custom functions, as well as function scoping and closures within R.

What you'll learn

R is a widely used programming language for statistical computing. In this course, Understanding R Function Scoping and Closures, you will learn foundational knowledge of creating your own custom functions within R as well as working with function scoping and closures. First, you will learn the basics of using and creating simple functions. Next, you will learn how to work with function returns and triggers and you will learn how to pass various data structures as arguments to a function. Finally, you will explore function closures and scoping within R. When you are finished with this course, you will have the skills of R functions needed to create your very own custom functions.

About the author

Justin Flett is a Mechatronics Engineer currently working as a Professor within the Faculty of Applied Science and Technology at Sheridan College. Justin has previously held positions at Hydro One Networks, Ford Motor Company, and ABB Robotics spanning across both the electrical and mechanical engineering industries. Most recently, he has been working as an Product Development Professional specializing in training, services, and consultation nation-wide, ranging from design fundamentals to adva... more

Ready to upskill? Get started