Not able to use fft() to .data/.txt file

Hello. I can't use fft() function to my data file. I tried to make it as vector and it says that it is not numeric argument. When I used as.numeric it says "'list' object cannot be coerced to type 'double'"

instead of trying as.vector try as.matrix
my suggestion is motivated by the following:

> class(as.vector(data.frame(a=1)))
[1] "data.frame"
> class(as.matrix(data.frame(a=1)))
[1] "matrix"
> is.numeric(as.vector(data.frame(a=1)))
[1] FALSE
> is.numeric(as.matrix(data.frame(a=1)))
[1] TRUE

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.