pgilbert@bank-banque-canada.ca
2001-Nov-29 19:43 UTC
[Rd] documentation for diff (PR#1185)
The documentation for diff says: If `x' is a vector of length `n' and `differences=1', then the computed result is equal to the successive differences `x[(1:n-lag)] - x[(lag:n)]'. ... This last line should say: `x[(1+lag):n] - x[1:(n-lag)]'. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "PaulG" == Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:PaulG> The documentation for diff says: If `x' is a vector PaulG> of length `n' and `differences=1', then the computed PaulG> result is equal to the successive differences PaulG> `x[(1:n-lag)] - x[(lag:n)]'. ... PaulG> This last line should say: PaulG> `x[(1+lag):n] - x[1:(n-lag)]'. Of course! Thank you Paul; fix now committed. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._