Learn R Programming

CompGR (version 0.1.3)

cAgr: CompGR: Complete Annual Growth Rate Generator

Description

CompGR: Complete Annual Growth Rate Generator

Usage

cAgr(time, obs, model = NULL)

Value

CAGR

Arguments

time

A numeric vector containing sequence of time points

obs

A numeric vector containing sequence of observations

model

Three models. User can may select one of the three methods including Linear, Logarithmic and Compound growth

References

1. Sharma, M. K., Sisodia, B. V. S., & Lal, K. (2013). Growth and trends of pulse production in India. Journal of Food Legumes, 26(1and2), 86-92.

Examples

Run this code
# \donttest{
time<-c(1,2,3,4,5,6,7)
obs<-c(14,18,19,15,14,17,16)
CAGR_out<-cAgr(time=time,obs=obs,model="lin")
# }

Run the code above in your browser using DataLab