Logicals + Dates + Quarto

Lecture 16

Dr. Elijah Meyer

NC State University
ST 295 - Spring 2025

2025-03-04

Announcements

– Exam-1 in-class is posted

– Exam-1 take-home is posted

> Don't sell the solutions 

– Statistics Experience is posted

– Quiz this Thursday

– Homework on time series data after Spring Break

– Project information after Spring Break

Statistics Experience

Goals

– learn how to take advantage of logical data types

– learn how to work with date data types

– More Quarto functionality

– Train our brain

Warm Up

You try to pull documents from GitHub and you see the following in your .qmd file. What is this? How do we fix this?

<<<<<<< HEAD 

2 + 2 is my favorite math equation  

======= 

3 + 8 is my favorite math equation  

>>>>>>> aj37d6fi3k39dkf8432d

Warm Up: Last time

We read these data in with the following code. What is each line of code doing?

sales <- read_excel("data/sales.xlsx",
                    skip = 3,
                    col_names = c("id" , "n"))

Warm Up: Thought Exercise

AE

Reading in date data

You’ll need to use col_types plus col_date() or col_datetime() along with a date-time format.

Reading in date data

Plot recreate