diff --git a/source/power_analyse.Rmd b/source/power_analyse.Rmd index dbd0346..0512508 100644 --- a/source/power_analyse.Rmd +++ b/source/power_analyse.Rmd @@ -10,7 +10,8 @@ knitr::opts_chunk$set(echo = TRUE) library(RODBC) library(here) -library(tidyverse) +library(dplyr) +library(tidyr) library(lme4) set.seed(123) @@ -158,7 +159,7 @@ scaled_yearly_declines <- random_yearly_declines - -```{r define parameters} +```{r} # Functie: Simuleer populatie op een locatie simulate_population <- function( year, location, species, decline_rate, sampling_days) {