dose_age_render_process_daily | R Documentation |
Renders the number of individuals with each dose in each age bin (cross tabulated doses and ages). This only renders output on timesteps that correspond to a day. See examples for how to quickly summarize the output.
dose_age_render_process_daily(renderer, age, dose, parameters, dt)
renderer |
a |
age |
a |
dose |
a |
parameters |
model parameters |
dt |
size of time step |
## Not run: # if the renderer object is called dose_age_renderer tmp <- as.data.table(dose_age_renderer$to_dataframe()) tmp <- melt(tmp,id.vars="timestep") tmp1 <- tmp[, tstrsplit(variable, "_", keep = c(2, 4))] tmp[ , variable := NULL] tmp <- cbind(tmp, tmp1) setnames(x = tmp,old = c("V1", "V2"),new = c("dose","age")) dose_dt <- tmp[, .(value = sum(value)), by = .(dose, timestep)] ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.