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

#### Lesson Outline

- Revisiting Common Arithmetic Operators
- Dealing with Advanced Arithmetic Operators
- Using Complex Arithmetic Expressions
- Dealing with Operator Priority Rules
- Identifying an Expression's Data Type
- Dealing with Variable Naming Rules
- Updating Variables
- Identifying a Variable's Data Type
- R Syntax: Best Practice
- Next Steps