index_x: index_x

Description Usage Arguments Examples

View source: R/utils.R

Description

Returns the x values for an actuarial table

Usage

1
index_x(x, x_, m_t_ = 1)

Arguments

x

vector of ascending numerics

x_

the index of the first x value to be returned.

m_t_

the index of the last x value to be returned. This is oftern m_ + t_, m_ or t_.

Examples

1
2
3
4
my_x <- 0:9
index_x(my_x, x_ = 2, m_t_ = 3)
index_x(my_x, x_ = 2.4, m_t_ = 3)
index_x(my_x, x_ = 2.4, m_t_ = 0)

merlinoa/diehard3000 documentation built on May 22, 2019, 6:52 p.m.