Please choose more modern alternatives, such as Google Chrome or Firefox.

Start your R journey and learn the most fundamental building blocks of the environmenent. Learn how to use and assign vectors with operators and functions. Use packages to access functions and data from external sources.

Outline

Introduction to Vectors

Types of vectors

Quiz: Data Types

Creating a sequence of numbers

Exercise: Use the : operator

Concatenating numeric values to a vector

Exercise: Concatenate numbers

Creating character vectors

Exercise: Create a character vector

Exercise: Concatenate text

Creating logical vectors

Exercise: Concatenate logical values

Quiz: Vectors Recap

Outline

Using R as a pocket calculator

Exercise: Use basic arithmetic

Applying arithmetic operators on vectors

Quiz: Vector Multiplication

Exercise: Multiply numeric vectors

Using relational operators

Exercise: Compare numeric values

Exercise: Compare temperatures

Using logical operators

Exercise: Use the & operator

Exercise: Use the | operator

Using the %in% operator

Exercise: Use the %in% operator