Exploring numerical data

Lecture 5

Dr. Mine Çetinkaya-Rundel

Duke University
STA 101 - Fall 2023

Warm up

Check-in

  • Daily check-ins for getting you thinking at the beginning of the class and reviewing recent/important concepts
  • Go to Canvas and open today’s “quiz” titled 2023-09-13 Check-in
  • Access code: ___ (released in class)
  • “Graded” for completion

Announcements

  • Lab 2 is due Thu, Sep 14 at 5 pm on Gradescope

Recap from last time

Suppose you have a data frame called df and a single variable in it called x. How many variables will df have after running the following code?

df |>
  mutate(y = x + 2)

Suppose you have a data frame called df and a single variable in it called x. How many variables will df have after running the following code?

df <- df |>
  mutate(y = x + 2)

What is the <- operator called and what does it do?

Exploring (categorical and) numerical data

2020 Durham City and County Resident Survey

We’ll continue working with this dataset.

Services

Demographics

Application exercise

Go to Posit Cloud and start the project titled ae-05-Durham.