as.term {fixedincome} | R 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")
[Package fixedincome version 0.0.5 Index]