[R] Convolution vector to be derived

Moohwan Kim kmhlmj2 at gmail.com
Fri Jun 4 20:21:54 CEST 2010


Dear R-help,

I want to generate the following outcome using the convolution of two sequences.

x <- c(1,2,3,4,5)
y <- c(6,7,8,9)

The resulting convolution vector is
6
19
40
70
100
94
76
45
When using convolve(), it is hard to produce the result above.
Would you help me out to get that?

Best regards
Moohwan Kim



More information about the R-help mailing list