fmbasics (version 0.3.0)

is_valid_compounding: Compounding frequencies

Description

A non-exported function that checks whether compounding values frequencies are supported.

Usage

is_valid_compounding(compounding)

Arguments

compounding

a numeric vector representing the compounding frequency

Value

a flag (TRUE or FALSE) if all the supplied compounding frequencies are supported.

Details

Valid compounding values are:

Value Frequency
-1 Simply, T-bill discounting
0 Simply
1 Annually
2 Semi-annually
3 Tri-annually
4 Quarterly
6 Bi-monthly
12 Monthly
24 Fortnightly
52 Weekly
365 Daily
Inf Continuously