as.term: Coerce a character to a Term

as.termR Documentation

Coerce a character to a Term

Description

as.term coerces a character vector to a Term object.

Usage

as.term(x, ...)

Arguments

x

a character to be coerced to a Term.

...

additional arguments. Currently unused.

Details

The string representation of the Term class follows the layout:

NUMBER UNITS

where units is one of: days, months, years.

Value

A Term object created from a string.

Examples

t <- as.term("6 months")

fixedincome documentation built on July 9, 2023, 7:28 p.m.