makeReturns: Compute log returns

Description Usage Arguments Value Details Author(s)

Description

Function returns an xts object with the log returns as xts object.

\mbox{log return}_t = (\log(\mbox{PRICE}_{t})-\log(\mbox{PRICE}_{t-1})).

Usage

1

Arguments

ts

xts object

Value

an xts object containing the log returns.

Details

Note: the first (row of) observation(s) is set to zero.

Author(s)

Jonathan Cornelissen and Kris Boudt


highfrequency documentation built on May 2, 2019, 6:09 p.m.