توضیح 1
Simple calculations help you test syntax.
Loading
درس 8 از 9
Learners run first R commands on synthetic business data and translate the output into plain language.
Theory
R is a programming language built for data analysis, statistics, and graphics. In this course, R is not a hurdle to jump over. It is a notebook for making your work reproducible: you can show the data you used, the commands you ran, and the output you interpreted.
توضیح 1
Simple calculations help you test syntax.
توضیح 2
Vectors store a set of related values.
توضیح 3
Data frames store rows and columns like a spreadsheet.
نمادگذاری و فرمولها
mean(values) = sum(values) / length(values)
R's mean() function calculates the same average you would compute by hand, while keeping the workflow reproducible.
ارتباط با R
Use head() before summary() so you know what each row and column represents. Then use table() and prop.table() for categorical variables such as device_type.
Live R Lab
Use synthetic business datasets to run simple calculations, create objects, read a CSV, summarize variables, and make first graphics.
Ready to run
Visual
A bar plot compares device types, a line plot shows visits across days, and a scatter plot compares visits with signups.
Bar plot
Line plot
Scatter plot
مثال حلشده
سناریو
If mean(traffic$signup_count) returns 53.83, the number is not just an output. It means the synthetic dataset averages about 54 signups per recorded day.
R output becomes useful when you translate it into a decision-friendly sentence.
منبع
Use the synthetic CSV locally or in the in-page R lab.
دریافتدستیار
Ask me what R output I received and help me interpret it without simply writing the answer for me.