text: 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`.
explanation: The document is a course section on data extraction and manipulation using R, specifically focusing on operations with data frames. It contains a series of tasks that involve calculating revenue, total items sold, total revenue, and the average price of sold items. The tasks are repeated multiple times, but they are essentially the same set of instructions.
distilabel_metadata.content: Evaluate the user given text extract and determine if it contains a math question and optionally and answer to this question.
  
  Output rules:
  
  1. Briefly describe the document and mention if it contains a question or a question and answer.
  2. Finalize the output with: Label: no-question,question,question-and-answer,multiple-question,multiple-question-and-answer
distilabel_metadata.role: system
distilabel_metadata.content: 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`.
distilabel_metadata.role: user
distilabel_metadata.raw_output_q_a_detector_0: The document is a course section on data extraction and manipulation using R, specifically focusing on operations with data frames. It contains a series of tasks that involve calculating revenue, total items sold, total revenue, and the average price of sold items. The tasks are repeated multiple times, but they are essentially the same set of instructions.
  
  Label: multiple-question