## Compute Durations in days for the MSFT Sereries -
head(durations(MSFT, units = "days"))
head(durations(MSFT, trim = TRUE, units = "days"))
## The same in hours -
head(durations(MSFT, trim = TRUE, units = "hours"))
Run the code above in your browser using DataLab