equalize_paths: Make all paths end at a fixed time

Description Usage Arguments Value

View source: R/path-functions.R

Description

Make all paths end at a fixed time

Usage

1
equalize_paths(df_paths, tmax)

Arguments

df_paths

A data.frame. Typically, the output of treelist_to_paths. The following columns are required: date, id_sim.

tmax

A non-negative scalar.

Value

A tbl with the same format as df_paths, but with the last point for each path fixed at tmax.


pspc-data-science/branchsim documentation built on Jan. 19, 2021, 10:10 a.m.