Data Extraction | Data Frames
R Introduction: Part II

Conteúdo do Curso

R Introduction: Part II

1. Matrices
2. Data Frames
3. Lists

Data Extraction

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tudo estava claro?

Seção 2. Capítulo 7

Data Extraction

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tudo estava claro?

Seção 2. Capítulo 7

Data Extraction

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tudo estava claro?

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.
The content structure consists of a repeated set of tasks involving data manipulation and calculation using R programming, specifically working with a furniture store's sales data.
multiple_questions

the text contains multiple mathematical questions or tasks that need to be performed on the given data, such as calculating revenue, total items sold, total revenue, and the average price of sold items. however, no answers to these questions are provided within the text.
Given a text passage, determine:
    1. If it contains a mathematical question (including word problems or calculations)
    2. If an answer to that mathematical question is provided in the text

First, describe the content structure you found in 1-2 sentences.

Then provide your analysis in the following format:
TYPE: <one of the following values>
- NO_QUESTION
- SINGLE_QUESTION
- SINGLE_QUESTION_WITH_ANSWER
- MULTIPLE_QUESTIONS
- MULTIPLE_QUESTIONS_WITH_ANSWERS
system
Data Extraction | Data Frames
R Introduction: Part II

Conteúdo do Curso

R Introduction: Part II

1. Matrices
2. Data Frames
3. Lists

Data Extraction

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tudo estava claro?

Seção 2. Capítulo 7

Data Extraction

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tudo estava claro?

Seção 2. Capítulo 7

Data Extraction

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.

Tudo estava claro?

Finish the section with practice on abstract local furniture store selling data!

Tarefa

You will work with the data below. This data is stored in the `store` variable.

 Item Price Sold Sofa 340 67 Armchair 150 81 Dining table 115 79 Bookshelf 160 42 Kitchen Cabinet 70 67

1. Add a new column named `'Revenue'` with the revenue of each item (multiply `'Price'` and `'Sold'`). To access columns, use the `\$` sign.
2. Using the `sum()` function, calculate the total number of items sold. Save in `items_sold` variable and output its value.
3. Calculate total revenue using `sum()` function. Save in the `total_revenue` variable and output its value.
4. Find out the average price of the sold item - divide `total_revenue` by `items_sold`.
user
The content structure consists of a repeated set of tasks involving data manipulation and calculation using R programming, specifically working with a furniture store's sales data.

TYPE: MULTIPLE_QUESTIONS

The text contains multiple mathematical questions or tasks that need to be performed on the given data, such as calculating revenue, total items sold, total revenue, and the average price of sold items. However, no answers to these questions are provided within the text.