I'm trying to do a spectral analysis in R. I learned it in Python from Allen Downey's ThinkDSP book.
What is the R equivalent of the Python numpy function, numpy.fft.fftfreq?
If you provide a window length and spacing, that function returns the frequency bin centers. I've been hunting through R package documentation and StackOverflow. Is there an equivalent function in R?