Don't miss our Black Friday 20% Off Self-Paced Courses and Vouchers!
Use code SP-BLACKFRIDAY at checkout.
R Programming Private

Introduction to R Programming (RPR101)

Course Length: 3 days

Learn the basics of programming with R..

Introduction to R Programming

Register or Request Training

  • Private class for your team
  • Live expert instructor
  • Online or on‑location
  • Customizable agenda
  • Proposal turnaround within 1–2 business days

Course Overview

In this R training course, students learn to program in the R language. Whether you are learning R because you plan to use it for data science, data analytics, machine learning, statistical computing, this R course provides you with the prerequisite R programming knowledge to get you started.

Course Benefits

  • Learn to create and use functions and packages.
  • Learn to work with math in R.
  • Learn to work with character data in R.
  • Learn to work with dates and times in R.
  • Learn to create vectors and lists.
  • Learn to create conditional code and work with loops.
  • Learn to handle dates and times.
  • Learn to work with arrays and matrices.
  • Learn to work with data frames.
  • Learn to plot data with matplot.

Delivery Methods

Private Class
Delivered for your team at your site or online.

Course Outline

  1. R Programming Basics
    1. Using R Studio
    2. Running R Statements
    3. Running an R File
    4. Exercise: Hello, World!
    5. Literals
    6. Exercise: Exploring Types
    7. Variables
    8. Exercise: A Simple R Script
    9. Constants and Deleting Variables
    10. print() Function
    11. Using paste() and paste0() with print()
    12. C-style Printing with sprint()
    13. Collecting User Input
    14. Exercise: Hello, You!
  2. Functions and Packages
    1. Defining Functions
    2. Variables as Vectors
    3. Using typeof() and class()
    4. Function Parameters
    5. Exercise: A Function with Parameters
    6. Returning Values
    7. Exercise: Parameters with Default Values
    8. Packages
  3. Math
    1. Arithmetic Operators
    2. Exercise: Floor and Modulus
    3. Assignment Operators
    4. Precedence of Operations
    5. Built-in Math Functions
    6. Using Random Numbers
    7. Exercise: How Many Pizzas Do We Need?
    8. Exercise: Dice Rolling
  4. Character
    1. Quotation Marks and Special Characters
    2. String Split
    3. Exercise: Splitting Strings
    4. Substring and Slicing
    5. Exercise: Substring
    6. Paste (Concatenate) Strings
    7. Exercise: Repetition
    8. Combining Concatenation and Repetition
    9. Exercise: Combining Concatenation and Repetition
  5. Vectors and Lists
    1. Definitions
    2. Atomic Vectors
    3. Lists (Non-atomic vectors)
    4. Sequences and Random
    5. Ranges
    6. Indexing using [ and [[
    7. Exercise: Simple Rock, Paper, Scissors Game
    8. $ operator
    9. Exercise: Slicing Sequences
  6. Flow Control
    1. Conditional Statements
    2. Compound Conditions
    3. The is and is not Operators
    4. all() and any() and the Ternary Operator
    5. Loops in R
    6. Exercise: All True and Any True
    7. break and next
  7. Exception Handling
    1. Exception Basics
    2. try()
    3. tryCatch()
  8. Dates and Times
    1. date()
    2. Sys.Date()
    3. Sys.time()
    4. Dates as Strings
    5. Time and Formatted Strings
    6. Exercise: What Color Pants Should I Wear?
    7. Date and Time arithmetic
    8. Exercise: Report on Departure Times
  9. Matrices and Arrays
    1. What is a Matrix?
    2. Creating a Matrix
    3. rbind() and cbind()
    4. matrix()
    5. Performing Arithmetic on Matrices
    6. Retrieving Rows and Columns
    7. Exercise: Working with an Array
    8. What is an Array?
    9. Creating an Array
    10. Naming Rows and Columns
    11. Exercise: Working with an Array
  10. Data Frames
    1. What is a Data Frame?
    2. Creating a Data Frame using data.frame()
    3. Creating a Data Frame from a CSV
    4. Exploring a Data Frame using str() and summary()
    5. Exercise: Practice Exploring a Data Frame
    6. Changing Values
    7. Retrieving Rows and Columns
    8. Combining Row and Column Selection
    9. Adding a Column to the Data Frame
    10. Add a Row to the Data Frame with rbind()
    11. Plotting with matplot
    12. Exercise: Plotting a Data Frame
    13. Other Kinds of Plots

Class Materials

Each student receives a comprehensive set of materials, including course notes and all class examples.

Have questions about this course?

We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.