Hello!
I suppose you want to obtain a fft of length, for example, 1024, from a
vector of size 100.
Fill the original vector with zeros to reach the desired length. This
is called 'zero padding'
fftn <- function(x, n) {
# fftn() - FFT of length n of a vector x
# Note: It does not check if n<length(x)
nx <- length(x)
xx <- c(x, rep(0, n-nx))
fft(xx)
}
See also ?nextn
Hope it helps!
Fran
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help