Lecture 15
Dr. Elijah Meyer + Konnie Huang
Duke University
STA 199 - Fall 2022
October 17, 2022
– Clone ae-13
– No Homework this week
– Project Proposal Due Thursday
– Merge conflicts can be avoided if you pull before making changes
– Refer to previous lab for steps on how to fix “simple” merge conflicts
– If conflicts continue to pile up….. save locally and “restart”
– Review R (Finish ae-12)
– What is a function?
– How can we write them?
– Why should we write them?
– Review web scraping
To convert temperatures in degrees Fahrenheit to Celsius, subtract 32 and multiply by .5556 (or 5/9).
Write a function in R that can take an input of a Fahrenheit temperature and output a temperature in Celsius.