Lecture 9
Duke University
STA 199 - Fall 2024
September 26, 2024
Go to your ae
project in RStudio.
Make sure all of your changes up to this point are committed and pushed, i.e., there’s nothing left in your Git pane.
Click Pull to get today’s application exercise file: ae-09-age-gaps-sales-import.qmd.
Wait till the you’re prompted to work on the application exercise during class before editing the file.
Midterm things
ae-08-durham-climate-factors
Go to your ae project in RStudio.
Open ae-08-durham-climate-factors.qmd
and pick up at “Recode and reorder”.
read_csv()
read_tsv()
, read_delim()
, etc.read_excel()
read_sheet()
– We haven’t covered this in the videos, but might be useful for your projectsRead a CSV file
Split it into subsets based on features of the data
Write out subsets as CSV files
What is the story in this visualization?
Go to your ae project in RStudio.
If you haven’t yet done so, make sure all of your changes up to this point are committed and pushed, i.e., there’s nothing left in your Git pane.
If you haven’t yet done so, click Pull to get today’s application exercise file: ae-09-age-gaps-sales-import.qmd.
Work through Part 1 of the application exercise in class, and render, commit, and push your edits.
Read an Excel file with non-tidy data
Tidy it up!
Are these data tidy? Why or why not?
What “data moves” do we need to go from the original, non-tidy data to this, tidy one?
Go to your ae project in RStudio.
If you haven’t yet done so, make sure all of your changes up to this point are committed and pushed, i.e., there’s nothing left in your Git pane.
If you haven’t yet done so, click Pull to get today’s application exercise file: ae-09-age-gaps-sales-import.qmd.
Work through Part 2 of the application exercise in class, and render, commit, and push your edits.