Course Content

R Introduction: Part I

## R Introduction: Part I

# Revenue Calculation

As we have previously mentioned, using variables can streamline the process of working with data by allowing for **clear, concise, and efficient calculations**. Now, let's apply our variables to a practical example.

Task

Continuing with the exercise from the previous chapter, we can calculate the **projected revenue over a 4-year period** using variables. Here's how:

- To determine the anticipated revenue after 4 years, use the variables
`initial_money`

,`interest_rate`

, and`n_years`

. Store the result in the`revenue`

variable. - Display the calculated revenue in the following format:

The formula for `revenue`

is:
`initial_money * (1 + interest_rate / 100) ^ n_years`

.

Task

Continuing with the exercise from the previous chapter, we can calculate the **projected revenue over a 4-year period** using variables. Here's how:

- To determine the anticipated revenue after 4 years, use the variables
`initial_money`

,`interest_rate`

, and`n_years`

. Store the result in the`revenue`

variable. - Display the calculated revenue in the following format:

The formula for `revenue`

is:
`initial_money * (1 + interest_rate / 100) ^ n_years`

.

Everything was clear?

# Revenue Calculation

As we have previously mentioned, using variables can streamline the process of working with data by allowing for **clear, concise, and efficient calculations**. Now, let's apply our variables to a practical example.

Task

Continuing with the exercise from the previous chapter, we can calculate the **projected revenue over a 4-year period** using variables. Here's how:

- To determine the anticipated revenue after 4 years, use the variables
`initial_money`

,`interest_rate`

, and`n_years`

. Store the result in the`revenue`

variable. - Display the calculated revenue in the following format:

The formula for `revenue`

is:
`initial_money * (1 + interest_rate / 100) ^ n_years`

.

Task

**projected revenue over a 4-year period** using variables. Here's how:

- To determine the anticipated revenue after 4 years, use the variables
`initial_money`

,`interest_rate`

, and`n_years`

. Store the result in the`revenue`

variable. - Display the calculated revenue in the following format:

The formula for `revenue`

is:
`initial_money * (1 + interest_rate / 100) ^ n_years`

.

Everything was clear?

# Revenue Calculation

As we have previously mentioned, using variables can streamline the process of working with data by allowing for **clear, concise, and efficient calculations**. Now, let's apply our variables to a practical example.

Task

**projected revenue over a 4-year period** using variables. Here's how:

- To determine the anticipated revenue after 4 years, use the variables
`initial_money`

,`interest_rate`

, and`n_years`

. Store the result in the`revenue`

variable. - Display the calculated revenue in the following format:

The formula for `revenue`

is:
`initial_money * (1 + interest_rate / 100) ^ n_years`

.

Task

**projected revenue over a 4-year period** using variables. Here's how:

- To determine the anticipated revenue after 4 years, use the variables
`initial_money`

,`interest_rate`

, and`n_years`

. Store the result in the`revenue`

variable. - Display the calculated revenue in the following format:

The formula for `revenue`

is:
`initial_money * (1 + interest_rate / 100) ^ n_years`

.

Everything was clear?

**clear, concise, and efficient calculations**. Now, let's apply our variables to a practical example.

Task

**projected revenue over a 4-year period** using variables. Here's how:

- To determine the anticipated revenue after 4 years, use the variables
`initial_money`

,`interest_rate`

, and`n_years`

. Store the result in the`revenue`

variable. - Display the calculated revenue in the following format:

The formula for `revenue`

is:
`initial_money * (1 + interest_rate / 100) ^ n_years`

.