Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wlangera committed Nov 28, 2024
1 parent 6c6da29 commit eeadc59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/markdown/test_densiteitsmodellering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,8 @@ analysis_df_brms1 %>%
filter(plotnaam %in% example_points) %>%
mutate(dens = n / offset) %>%
select(plotnaam, stratum, periode_in_jaar, dens) %>%
arrange(plotnaam, desc(dens))
arrange(plotnaam, desc(dens)) %>%
kable()
```

Niet super.
Expand Down Expand Up @@ -1385,8 +1386,11 @@ if (file.exists(brms2_pred_path)) {
regio == "Weidestreek", regio,
paste(regio, openheid_klasse, sbp, sep = "_"))
) %>%
left_join(analysis_df_brms1 %>% distinct(stratum, offset),
by = join_by(stratum),
relationship = "many-to-many") %>%
select(plotnaam = pointid, stratum, x_coord, y_coord,
openheid = openheid_klasse, sbp) %>%
openheid = openheid_klasse, sbp, offset) %>%
expand_grid(periode_in_jaar = unique(analysis_df_brms1$periode_in_jaar))
print(paste("Making predictions for", reg_vec[i]))
Expand Down

0 comments on commit eeadc59

Please sign in to comment.