Update concentration with desired value
update_concentration.RdUpdate the min, max and distribution law of the concentration in the simulated configuration according to a value defined by the user
Examples
scenario_test <- create_scenario(
system.file("input_1culture_2pop.xlsx", package = "ambre")
)
pathogenName <- c("Norovirus", "Rotavirus")
concentration_custom <- data.frame(PathogenName = pathogenName,
min = c(1, 1),
max = c(2,2),
type = c("uniform", "uniform"))
scenario_updated_patho <- update_pathogen(scenario = scenario_test, pathoName = pathogenName)
result <- update_concentration(scenario = scenario_updated_patho ,
concentration = concentration_custom)
dplyr::filter(result$config[[1]]$inflow, PathogenName == "Norovirus")
#> # A tibble: 1 × 13
#> PathogenID PathogenName PathogenGroup simulate value mode mean sd meanlog
#> <dbl> <chr> <chr> <dbl> <lgl> <lgl> <lgl> <lgl> <lgl>
#> 1 25 Norovirus Viruses 1 NA NA NA NA NA
#> # ℹ 4 more variables: sdlog <lgl>, min <dbl>, max <dbl>, type <chr>