Descriptive statistics
📖 Scenario: You work as a data analyst for a small company. You have collected sales data for a week and want to understand the basic statistics like average sales, minimum, maximum, and total sales.
🎯 Goal: Build a simple R script that calculates descriptive statistics (mean, min, max, sum) for daily sales data.
📋 What You'll Learn
Create a numeric vector with exact daily sales values
Create a variable to hold the number of days
Calculate mean, minimum, maximum, and total sales using built-in R functions
Print the results clearly
💡 Why This Matters
🌍 Real World
Descriptive statistics help summarize and understand data quickly in many fields like business, healthcare, and research.
💼 Career
Data analysts and scientists use these basic statistics daily to report insights and make decisions.
Progress0 / 4 steps