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")

wilsonfreitas/R-fixedincome documentation built on June 30, 2023, 7:46 a.m.