categorical_count_renderer_process_daily: Render categories every day

View source: R/render.R

categorical_count_renderer_process_dailyR Documentation

Render categories every day

Description

Renders the number of individuals in each category, but only on timesteps that correspond to a day. This saves memory and potentially time for simulations with small timesteps.

Usage

categorical_count_renderer_process_daily(renderer, variable, categories, dt)

Arguments

renderer

a Render object

variable

a CategoricalVariable object

categories

a character vector of categories to render

dt

size of time step

Value

a function which can be passed as a process to simulation_loop


mrc-ide/safir documentation built on Aug. 2, 2022, 10:47 a.m.