powered by
Year over year growth (or versus any period)
YoY(serie, lapso, decimal = TRUE)
numeric vector or series
period separations (12 = for monthly data, 4 = quaterly data)
Should result be in decimals? Default = TRUE. False returns percents x 100.
Vector numeric
# NOT RUN { # Calculate inflation # } # NOT RUN { token <- "webservice_token" INPC <- serie_inegi(INPC, token) Inflation <- YoY(INPC$Valores, 12) # }
Run the code above in your browser using DataLab