Set population data
Examples
# Single region
age <- round(runif(10, 1, 100))
obesity <- sample(c("Normal", "Obese"), 10, replace = TRUE)
geoTox <- set_population(GeoTox(), age = age, obesity = obesity)
# Multiple regions
age <- list("37001" = round(runif(10, 1, 100)),
"37007" = round(runif(8, 1, 100)))
obesity <- list("37001" = sample(c("Normal", "Obese"), 10, replace = TRUE),
"37007" = sample(c("Normal", "Obese"), 8, replace = TRUE))
geoTox <- set_population(GeoTox(), age = age, obesity = obesity)