Makes objects of class "variance"
be printed differently.
Usage
# S3 method for variance
print(x, ...)
Arguments
- x
"variance"
class object to be printed.- ...
further arguments to be passed to the next method.
Examples
a <- as.variance(1)
print(a)
#> Daily Variance
#> [1] 1
a <- annualize(a)
print(a)
#> Annual Variance 252 days
#> [1] 252