MISSION 513

# Arithmetic Expressions and Variables in R

In this second lesson of our introduction to data analysis in R course, you will continue learning the syntax of the R language as you begin to write mathematical expressions and work with variables.

You'll review the basic arithmetic operators, and learn how they're used — as well as the order of operations — the the context of R code. You'll also learn to evaluate the data type of an expression, and you'll learn to make use of variables while sticking to the variable naming rules and conventions of R.

You'll also learn a bit about best practices for writing R code.

After you finish this lesson, you will be well-equipped to start building simple programs in R. If you have trouble coming up with ideas, you can practice by following this tutorial to build a simple calculator and maybe some additional ideas for programs will come to mind.

#### Objectives

• Continue learning about R syntax.
• Learn to work with common arithmetic operators.
• Identify variable types and update variables in R.

#### Mission Outline

1. Revisiting Common Arithmetic Operators
2. Dealing with Advanced Arithmetic Operators
3. Using Complex Arithmetic Expressions
4. Dealing with Operator Priority Rules
5. Identifying an Expression's Data Type
6. Dealing with Variable Naming Rules
7. Updating Variables
8. Identifying a Variable's Data Type
9. R Syntax: Best Practice
10. Next Steps

Course Info:

## Introduction to Data Analysis in R

Beginner

This course requires a Basic subscription and includes four missions and one guided project.  It is the first course in the Data Analyst in R path.