Skip to main content
Luz’s Tacos food truck on a painted city background

8-week R unit · no experience needed

R for Marketing

Start with your first line of R code. Learn to spot patterns, understand regression, and turn numbers into advice a business owner can use.

Your case is Luz’s Tacos: a small food truck with a big question. Do warmer days or Instagram ads bring in more sales? You'll work with 30 days of records to find out—no coding or statistics background needed.

Save your lesson progress and pick up where you left off. Your quiz scores are practice feedback and aren't saved to your account.

Your course in 33 seconds

Read the video transcript

From your first command to your first recommendation

Two students explore a spreadsheet beside the Luz’s Tacos truck.

Get comfortable with R

Explore Luz’s sales data, already loaded in your built-in R workspace. Run short code examples and make charts that show what's happening at the truck.

Two students discuss a line fitted through a scatter plot.

Make sense of the numbers

Explore correlation, try fitting a line yourself, and learn what regression results mean in marketing terms.

Luz and a student discuss charts while a dog rests by their table.

Build your confidence

Check your understanding with practice quizzes. Ask the AI tutor about your code or results when you get stuck.

In Week 4, you'll write advice to Luz about her ad budget, using charts and correlation. Later, you'll revisit that advice with regression. These eight lessons support your 14-week course; your real-client midterm and final project stay with your instructor.

Your learning path

  1. 01Hello, RWhat did Luz's truck sell last week?
  2. 02Data frames: R's spreadsheetHow do we load a month of sales?
  3. 03Seeing patternsDo hot days sell more tacos?
  4. 04Measuring the linkHow strong is the weather effect?
  5. 05Least squares, by handWhich line best describes the dots?
  6. 06Let R do it: lm()How much is one extra degree worth?
  7. 07Predicting & adding adsShould Luz spend more on Instagram?
  8. 08Checking the model & pitchingCan Luz trust it?