Learn R Programming

IBMPopSim (version 0.4.3)

merge_pop_withid: A function returning a merged dataframe from a list of population dataframes with id.

Description

A function returning a merged dataframe from a list of population dataframes with id.

Usage

merge_pop_withid(pop_df_list, chars_tracked = NULL)

Value

A dataframe composed of all individuals with their characteristics at each simulation time.

Arguments

pop_df_list

A list of population dataframe where the first three columns of each dataframe are id, birth and death.

chars_tracked

A vector of characteristics to be tracked over time.