Skip to contents

Makes objects of class "volatility" be printed differently.

Usage

# S3 method for volatility
print(x, ...)

Arguments

x

"volatility" class object to be printed.

...

further arguments to be passed to the next method.

Value

invisible(x).

See also

Examples

a <- as.volatility(1)
print(a)
#> Daily Volatility 
#> [1] 1
a <- annualize(a)
print(a)
#> Annual Volatility (%) 252 days 
#> [1] 1587.451