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

as.term(x, ...)

Arguments

x

a character to be coerced to a Term.

...

additional arguments. Currently unused.

Value

A Term object created from a string.

Details

The string representation of the Term class follows the layout:

NUMBER UNITS

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

Examples

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