Nothing
#' Close to Open return
#'
#' Calculates returns from previous days' closes to current days' opens
#'
#' @param x an xts object with Close and Open columns
#' @return an xts object of returns
#' @author Garrett See
#' @seealso OpOp, ClCl, OpCl
#' @examples
#' \dontrun{
#' getSymbols("SPY")
#' ClOp(SPY)
#' }
#' @export
ClOp <-
function(x)
{
xx <- Delt(Lag(Cl(x)),Op(x))
colnames(xx) <- paste("ClOp", deparse(substitute(x)), sep='.')
xx
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.