powered by
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})). $$
makeReturns(ts)
xts object
an xts object containing the log returns.
Note: the first (row of) observation(s) is set to zero.