Learn R Programming

PMmisc (version 0.1.0)

fpctcng: Calculating rate of return of a vector

Description

Calculating the rate of return of a vector for further analysis, including calculating beta of companies, plotting to see the trend of the stock for technical analysis.

Usage

fpctcng(x,n)

Arguments

x

:a numeric vector

n

: number of lag periods

Examples

Run this code
# NOT RUN {
fpctcng(mtcars[,1],1)
# }

Run the code above in your browser using DataLab