Skip to content

Commit

Permalink
edits to pass lintr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
avallecam committed Apr 2, 2024
1 parent 819b5dd commit 7ca068e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion episodes/delays-challenges.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ You will find complementary challenges and resources to continue your learning p

```{r,warning=FALSE,message=FALSE}
library(epiparameter)
library(EpiNow2)
library(tidyverse)
```

Expand Down
14 changes: 7 additions & 7 deletions episodes/delays-functions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -668,13 +668,13 @@ influenza_generation
# EpiNow2 currently accepts Gamma or LogNormal
# other can pass the PMF function
influenza_generation_discrete <-
influenza_generation_discrete <-
epiparameter::discretise(influenza_generation)
influenza_generation_max <-
influenza_generation_max <-
quantile(influenza_generation_discrete, p = 0.999)
influenza_generation_pmf <-
influenza_generation_pmf <-
density(
influenza_generation_discrete,
at = 1:influenza_generation_max
Expand All @@ -695,17 +695,17 @@ influenza_incubation <-
epidist_db(
disease = "influenza",
epi_dist = "incubation",
single_epidist = TRUE
single_epidist = TRUE
)
# Discretize incubation period
influenza_incubation_discrete <-
influenza_incubation_discrete <-
epiparameter::discretise(influenza_incubation)
influenza_incubation_max <-
influenza_incubation_max <-
quantile(influenza_incubation_discrete, p = 0.999)
influenza_incubation_pmf <-
influenza_incubation_pmf <-
density(
influenza_incubation_discrete,
at = 1:influenza_incubation_max
Expand Down

0 comments on commit 7ca068e

Please sign in to comment.