Arguments
df
Data.frame of the time serie
date_format
Character, date format of the input date column.
It can be NULL to indicate no date conversion is needed.
Default: "%m/%d/%Y".
dt
Character, the name of the input date column. Default: "Date"
col_in
Character, the name of the input closing price column. Default: "Close"
col_out
Character, the name of the output closing price column. Default: "Close"
do.logr
logical, if TRUE (default), produce xts object of logr; otherwise, just the col_out column.
rnd.zero
numeric, a small random factor to avoid an unreal peak of zero log-returns.