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

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:

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