powered by
Calculating the percentage change of a time series vector for further analysis, including calculating beta of companies, plotting to see the trend of the stock for technical analysis.
cv.pctcng(x,n)
:a numeric vector
: number of lag periods
# NOT RUN { cv.pctcng(mtcars[,1],1) # }
Run the code above in your browser using DataLab