R/logreturns.R

logreturns <-
function(x)
{
	log(x[2:(length(x))]/x[1:(length(x)-1)])
}

Try the HMMCont package in your browser

Any scripts or data that you put into this service are public.

HMMCont documentation built on May 1, 2019, 10:46 p.m.