Skip to main content

Course

Intermediate R

Basic6 hr

Continue your journey to becoming an R ninja by learning about conditional statements, loops, and vector functions.

R6 hr14 videos81 Exercises6,950 XP670K+Statement of accomplishment

Create Your Free Account

Continue with Google
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Training a Team?

Try for Business

Course Description

Intermediate R is the next stop on your journey in mastering the R programming language. In this R training, you will learn about conditional statements, loops, and functions to power your own R scripts. Next, make your R code more efficient and readable using the apply functions. Finally, the utilities chapter gets you up to speed with regular expressions in R, data structure manipulations, and times and dates. This course will allow you to take the next step in advancing your overall knowledge and capabilities while programming in R.The videos contain live transcripts you can reveal by clicking "Show transcript" at the bottom left of the videos. The course glossary can be found on the right in the resources section. To obtain CPE credits you need to complete the course and reach a score of 70% on the qualified assessment. You can navigate to the assessment by clicking on the CPE credits callout on the right.

Feels like what you want to learn?

Start Course for Free

What you'll learn

  • Apply mathematical and data-structure utility functions (abs(), round(), seq(), rep(), sort(), str()) to transform and inspect R objects.
  • Create, convert, and compute with R date and time objects using Sys.Date(), Sys.time(), as.Date(), and as.POSIXct().
  • Use lapply(), sapply(), and vapply() to apply functions over lists/vectors and reason about simplification behavior and return types.
  • Use regular expression functions (grepl(), grep(), sub(), gsub()) to detect, extract, and replace text patterns in character data.
  • Write custom R functions with arguments, defaults, control flow, and safe processing logic using if, else if, and return().

Prerequisites

Curriculum

Course outline

1

Conditionals and Control Flow

5

Utilities

Mastering R programming is not only about understanding its programming concepts. Having a solid understanding of a wide range of R functions is also important. This chapter introduces you to many useful functions for data structure manipulation, regular expressions, and working with times and dates.
Start Chapter
R

Intermediate R

Course
Complete

Earn Statement of Accomplishment

Enroll Now

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.