Created
May 15, 2020 18:05
-
-
Save BenjaminWolfe/923d66b66c44ea29a750c03ac00379d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my 15yo's homework today during lockdown | |
# find an equation for the cooling of a cup of coffee | |
# with the following temperature measurements | |
library(tidyverse) | |
decay_tbl <- tribble( | |
~time, ~temperature, | |
0, 179.5, | |
5, 168.7, | |
8, 158.1, | |
11, 149.2, | |
15, 141.7, | |
18, 134.6, | |
22, 125.4, | |
25, 123.5, | |
30, 116.3, | |
34, 113.2, | |
38, 109.1, | |
42, 105.7, | |
45, 102.2, | |
50, 100.5 | |
) | |
decay_tbl %>% | |
ggplot() + | |
aes(time, temperature) + | |
geom_line() + | |
geom_point() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment