From pgilbert@bank-banque-canada.ca  Thu Nov 29 19:43:56 2001
From: pgilbert@bank-banque-canada.ca (pgilbert@bank-banque-canada.ca)
Date: Thu, 29 Nov 2001 20:43:56 +0100 (MET)
Subject: [Rd] documentation for diff (PR#1185)
Message-ID: <200111291943.UAA14511@pubhealth.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] documentation for diff (PR#1185)
pgilbert@bank-banque-canada.ca