Skip to content

Commit

Permalink
Er miste een %>% op regel 147 in 2. plot.R.
Browse files Browse the repository at this point in the history
Kolomnaam van de virusvracht aangepast in df_viralload_human_regions en 0. functions.R
  • Loading branch information
Wouter committed May 3, 2022
1 parent 28699b9 commit 050d2e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions 0. functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ read_df_sewage <- function( df_viralload_human_regions ){
mutate(rwzi = as.factor( RWZI ),
date = Datum,
concentration = case_when(
N12_100000_RWZI != 0 ~ log10(N12_100000_RWZI),
N12_100000_RWZI == 0 ~ 0,
is.na(N12_100000_RWZI) ~ -1),
RNA_100000_RWZI != 0 ~ log10(RNA_100000_RWZI),
RNA_100000_RWZI == 0 ~ 0,
is.na(RNA_100000_RWZI) ~ -1),
rwzi_persons = Inwoneraantal,
municipality_persons = Inwoneraantal_municipality,
municipality = as.factor( municipality ),
Expand Down
2 changes: 1 addition & 1 deletion 2. plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ df_posteriors %>%
.[1:9])) %>%
arrange(desc(rwzi_persons)) %>%
mutate(rwzi = str_to_title(as.character(rwzi)),
rwzi = factor(rwzi, unique(rwzi)))
rwzi = factor(rwzi, unique(rwzi))) %>%
select( date, load, concentration, rwzi ) %>%
group_by(rwzi) %>%
group_split() %>%
Expand Down
Binary file modified df_viralload_human_regions.RData
Binary file not shown.

0 comments on commit 050d2e2

Please sign in to comment.