Using R Programming Structures: Functions & Environments

R Programming 4.0+
  • 13 Videos | 1h 45m 57s
  • 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 course
    recall how built-in functions can be viewed and new functions created
    introduce the return function and recall ways of returning data without invoking it
    implement the use of named arguments to pass in data to functions
    specify default arguments for functions
    specify functions as input arguments to other functions
    use functions with switch statements and store functions in other data structures
  • recall the use of R environments as bindings of variable names to values
    create inner nested functions within outer functions
    recognize the nested environments created by default within a function
    implement closures, which include the environment, body, and input arguments to a function
    create and use replacement functions to specify functions that can be l-values
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 32s
    UP NEXT
  • Playable
    2. 
    Creating Custom Functions in R
    7m 9s
  • Locked
    3. 
    Returning Data from Functions in R
    9m 37s
  • Locked
    4. 
    Using Named Arguments in R
    8m 51s
  • Locked
    5. 
    Using Default Arguments in R
    12m 21s
  • Locked
    6. 
    Working with First-class Functions in R
    5m 48s
  • Locked
    7. 
    Storing Functions & Using Them in Switch Statements
    6m 46s
  • Locked
    8. 
    Working with R Environments
    11m 5s
  • Locked
    9. 
    Creating Inner Functions in R
    8m 14s
  • Locked
    10. 
    Recognizing R Functions and Environments
    10m 32s
  • Locked
    11. 
    Working with Closures in R
    5m 57s
  • Locked
    12. 
    Working with Replacement Functions in R
    9m 47s
  • Locked
    13. 
    Course Summary
    1m 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.

YOU MIGHT ALSO LIKE

Likes 27 Likes 27