What is "patch"? I don't find it in R 1.8.1. However, ?"diff" mentions "diffinv"; that and "cumsum" perform as follows:

cumsum(diff(1:11))
[1] 1 2 3 4 5 6 7 8 9 10
> diffinv(diff(1:11))
[1] 0 1 2 3 4 5 6 7 8 9 10
>
spencer graves


Duncan Murdoch wrote:

On Tue, 13 Apr 2004 18:57:59 +0200 (CEST), michele lux
<[EMAIL PROTECTED]> wrote :



Hallo all
somebody knows if exist a command who makes the
opposite of what "diff" command do?
I'he to write code?



Sounds like "patch" is what you want.


Duncan Murdoch

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to