[R] Opposite of 'diff'? [was: (no subject)]
Spencer Graves
spencer.graves at pdf.com
Tue Apr 13 19:58:35 CEST 2004
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
><nedluk at yahoo.it> 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
>
>______________________________________________
>R-help at stat.math.ethz.ch 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
>
>
More information about the R-help
mailing list