as.data.frame.micsim_result: The simulated population, as a plain data frame

View source: R/simulate.R

as.data.frame.micsim_resultR Documentation

The simulated population, as a plain data frame

Description

Returns the pop data frame of a result. Includes one row per transition, plus one row with NA transition columns for each individual who never experienced a transition.

Usage

## S3 method for class 'micsim_result'
as.data.frame(x, ...)

Arguments

x

A micsim_result.

...

Not used.

Details

Use this wherever code still expects a plain pop data frame, such as an existing script, an old workflow or another package. It is the same format MicSim has always returned.

Value

The pop data frame.


MicSim documentation built on Dec. 2, 2026, 1:09 a.m.