Using R Programming Structures: Functions & Environments
R Programming 4.0+
| Intermediate
- 13 Videos | 1h 40m 27s
- Includes Assessment
- Earns a Badge
R supports several powerful features, such as first-class functions, functions on the left-hand side of an assignment, and explicit environment objects that bind variables to values. Taken together, these make R a powerful language for functional programming. This course will show you how to work effectively with functions in R. Specifically, you'll learn how to create and invoke functions in R and leverage R support for functional programming and first-class functions. You'll recognize how an R environment is a virtual binding between variable names and values. You'll create nested environments and leverage the fact that individual functions have their own local environments. You'll also create and invoke closures as well as replacement functions. By the end of the course, you'll have the confidence to work with functions in your R programming projects.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this courserecall how built-in functions can be viewed and new functions createdintroduce the return function and recall ways of returning data without invoking itimplement the use of named arguments to pass in data to functionsspecify default arguments for functionsspecify functions as input arguments to other functionsuse functions with switch statements and store functions in other data structures
-
recall the use of R environments as bindings of variable names to valuescreate inner nested functions within outer functionsrecognize the nested environments created by default within a functionimplement closures, which include the environment, body, and input arguments to a functioncreate and use replacement functions to specify functions that can be l-valuessummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 32sUP NEXT
-
2.Creating Custom Functions in R7m 9s
-
3.Returning Data from Functions in R9m 37s
-
4.Using Named Arguments in R8m 51s
-
5.Using Default Arguments in R12m 21s
-
6.Working with First-class Functions in R5m 48s
-
7.Storing Functions & Using Them in Switch Statements6m 46s
-
8.Working with R Environments11m 5s
-
9.Creating Inner Functions in R8m 14s
-
10.Recognizing R Functions and Environments10m 32s
-
11.Working with Closures in R5m 57s
-
12.Working with Replacement Functions in R9m 47s
-
13.Course Summary1m 48s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.