View source: R/create_twig_obj.R
payoffs | R Documentation |
This function creates a payoffs layer that can be added to a twig object. The payoffs layer defines the payoffs and their associated discount rates.
payoffs(names, discount_rates = NULL)
names |
A character vector of payoff function names. They don't need to be included in quotes. |
discount_rates |
A numeric vector of discount rates for each payoff. If NULL, a discount rate of 0 is assumed for each payoff. discount_rates must have the same length as payoff names. |
A list representing the payoffs layer.
payoffs_layer <- payoffs(names = c(cost, effectiveness), discount_rates = c(0.03, 0.03))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.