new_event: Generate new events to be added to existing vector of events

View source: R/input_f.R

new_eventR Documentation

Generate new events to be added to existing vector of events

Description

Generate new events to be added to existing vector of events

Usage

new_event(evt, env_ch = NULL)

Arguments

evt

Event name and event time

env_ch

Environment in which to save list (should not be defined by user)

Details

The functions to add/modify events/inputs use lists. Whenever several inputs/events are added or modified, it's recommended to group them within one function, as it reduces the computation cost. So rather than use two new_event with a list of one element, it's better to group them into a single new_event with a list of two elements.

Examples

## Not run: 
new_event(list("ae"=5))
new_event(list("ae"=5,"nat.death" = 100))

## End(Not run)

Roche/descem documentation built on July 27, 2022, 11:18 a.m.