Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
The Comprehensive Programming in R Course
Rating: 4.3 out of 5(268 ratings)
3,406 students
Last updated 8/2020
English

What you'll learn

  • Acquire the skills needed to successfully develop general-purpose programming applications in the R environment
  • Possess an in-depth understanding of the R programming environment and of the requirements for, and programming implications of, writing code using basic R objects: vectors, matrices, dataframes and lists.
  • Understand the object-oriented characteristics of programming in R and know how to create S3 and S4 Class objects and functions that process these S3 and S4 objects.
  • Know how to program mathematical functions, models and simulations in R.
  • Know how to write R programs that effectively use and manipulate text and string variable objects.
  • Know how to use the scan(), readline(), cat(), print() and readLines() functions in R for efficient data input and output and for effective user-prompting.
  • Know how to 'tweak' R programs for maximum performance efficiency.

Course content

14 sections120 lectures24h 59m total length
  • Introduction to Comprehensive R Programming Course1:52

    This course teaches how to program general purpose applications in R. The first part of the course sets the stage for understanding how to program, control and manipulate basic R data structures: vectors, matrices, data frames, and lists. The second part of the course teaches the details of writing functions and programs in the object-oriented R environment: programming R structures directly; writing math and simulation functions; setting up S3 and S4 classes in R; input and output; and string manipulation and performance enhancement.

  • Introduction and Getting Started14:54

    Explore the R studio integrated development environment and its source front end for interactive and batch R work. Learn about interpreting, vectors, R norm, help, and running code with source.

  • Getting Started and First R Session14:53

    Set and verify the working directory in R, list files, and save a histogram to a graphical output file, while understanding how sessions and memory govern your workspace.

  • First R Session (part 2)14:51

    Explore the R workspace with ls, objects, and search; inspect the global environment and package order; create and print vectors; explore data sets, Nile time series, and histograms.

  • First R Session (part 3)15:08

    Learn to visualize univariate distributions in R with histograms, adjustable bins via breaks, and explore core data structures like vectors, lists, and matrices, plus text manipulation with paste and split.

  • Matrices, Lists and Dataframes14:58
  • Introduction to Functions15:02

    One of the great strengths of R is the user's ability to add functions. In fact, many of the functions in Rare actually functions of functions. The structure of a function is given below.

    myfunction <- function(arg1, arg2, ... )

    {statements}

    Objects in the function are local to the function.

  • Functions and Default Arguments14:49

    Explore how R creates a fresh function environment on call, how scope separates global and local variables, and how default arguments enable lazy evaluation.

  • More Examples of Functions (part 1)14:17
  • More Functions Examples (part 2)12:00
  • More Functions Examples (part 3)11:12

    Explore lexical scoping in R with nested functions, showing how inner frames resolve variables by climbing enclosing environments, and how super assignment pushes values to the global environment, risking pollution.

  • More Functions Examples (part 4)12:25

    Open account creates a closure with deposit, withdraw, and balance sharing a total, showing updates and overdraft errors, and illustrating optional arguments and named versus positional binding in R.

  • More Functions Examples (part 5)10:19

    Explore creating par functions that compare two vectors pairwise using pmax and pmin, then compute medians from resulting vectors, and use lists and named components to return multiple values.

  • More Functions Examples (part 6)7:31

    Explore anonymous functions in R, using the function keyword to define unnamed operations and harness vectorization with x and y, while learning lazy argument evaluation in plotting.

Requirements

  • Students will need to install the no-cost R console and the no-cost RStudio application (instructions are provided).

Description

The Comprehensive Programming in R Course is actually a combination of two R programming courses that together comprise a gentle, yet thorough introduction to the practice of general-purpose application development in the R environment. The original first course (Sections 1-8) consists of approximately 12 hours of video content and provides extensive example-based instruction on details for programming R data structures. The original second course (Sections 9-14), an additional 12 hours of video content, provides a comprehensive overview on the most important conceptual topics for writing efficient programs to execute in the unique R environment. Participants in this comprehensive course may already be skilled programmers (in other languages) or they may be complete novices to R programming or to programming in general, but their common objective is to write R applications for diverse domains and purposes. No statistical knowledge is necessary. These two courses, combined into one course here on Udemy, together comprise a thorough introduction to using the R environment and language for general-purpose application development.

The Comprehensive Programming in R Course (Sections 1-8) presents an detailed, in-depth overview of the R programming environment and of the nature and programming implications of basic R objects in the form of vectors, matrices, dataframes and lists. The Comprehensive Programming in R Course (Sections 9-14) then applies this understanding of these basic R object structures to instruct with respect to programming the structures; performing mathematical modeling and simulations; the specifics of object-oriented programming in R; input and output; string manipulation; and performance enhancement for computation speed and to optimize computer memory resources.

Who this course is for:

  • Anyone interested in writing computer applications that execute in the R environment.
  • The common objective of students is common objective is to write R applications for diverse domains and purposes.
  • Students may already be skilled programmers (in other languages) or they may be complete novices to R programming or to programming in general,
  • Undergraduate or graduate students looking to acquire marketable job skills prior to graduation.
  • Analytics professionals looking to acquire additional job skills.