Skip to content
KnowledgeCity

R Programming Intermediate: Control Flow and Conditional Statements

Use conditional statements to write R functions with control flow and subset data structures
Preview the first lesson free — get full access to all 7 lessons.
Course: On-Demand
Intermediate Provider Tom Rosenwinkel  7 Lessons ·  41m  in English 

Course Description

How can you explore the data types and structures in R, or change them as needed? How can you control the flow of your R code, or the structure of your data subsets? Data types, object attributes, and conditional statements are foundational in R. Learning how to create the right conditional statements for control flow and data subsetting is an essential skill for any R programmer. The topics discussed in these lessons will build on your understanding of the R language and form a foundation for vectorization, scaling functional programming, and class concepts.

In these lessons, you will learn how to write R functions with conditional control flow. We will explore the base data structures in R including class properties and attributes, along with functional programming concepts. By the end of these lessons, you will be able to write conditional statements and apply them to control flow and to subset data structures.

What You'll Learn

  • Understand the base data types, class attributes, and structures in R
  • Write R functions with conditional control flow
  • Apply functional programming concepts to organize and control R code flow
  • Use logical conditions and operators to build conditional statements
  • Apply conditional statements to subset R data structures
  • Explore base data structures in R including class properties and attributes

Key Takeaways

  • Data types, object attributes, and conditional statements are foundational concepts in R.
  • Creating the right conditional statements for control flow and data subsetting is an essential skill for any R programmer.
  • These topics build a foundation for vectorization, scaling functional programming, and class concepts.
  • By the end of the lessons, learners can write conditional statements and apply them to control flow and to subset data structures.
  • The course reviews names, vectors, attributes, and subsetting alongside logical conditions and functions.

Frequently Asked Questions

Who is this course for?

It is intended for R programmers looking to build on their understanding of the R language, covering foundational concepts like data types, object attributes, and conditional statements.

What topics does this course cover?

It covers base data types, class attributes and structures in R, logical conditions and operators, conditional control flow, functions, functional programming concepts, and subsetting. Lessons include Review of Names, Review of Vectors, Review of Attributes for Common Structures, Logical Conditions and Operators, Conditional Control Flow, Functions, and Review of Subsetting.

What skills will I gain?

You will gain skills in writing conditional statements and data infrastructure, applying conditional statements to control flow and to subset data structures.

What will I be able to do by the end?

By the end of these lessons, you will be able to write conditional statements and apply them to control flow and to subset data structures.

How does this course fit into a broader R learning path?

The topics build on your understanding of the R language and form a foundation for vectorization, scaling functional programming, and class concepts.