Question: how to calculate percent difference in r?
Answer: Description. Calculate the k-period percent difference within one series, or between two series. ...  Usage. Delt(x1, x2 = NULL, k = 0, type = c("arithmetic", "log")) Arguments. x1. ...  Details. When called with only x1 , the one period percent change of the series is returned by default. ...  Value. ...  Author(s) ...  See Also. ...  Examples.