I have some recorded signal with 100Hz sample rate. I want to filter out 60Hz frequency from the signal. I am using the butter()
filter from the signal
package in R. But it does not allow us to filter out frequencies greater than the Nyquist frequency. So when I try to apply the Butterworth filter
butter(5,W=c(58,62)/100*2,type="stop")
I get the
Error in butter.default(5, W = c(58, 62)/100 * 2, type = "stop") :
butter: critical frequencies must be in (0 1)
The manual page for Chebyshev's filters mentions the same requirement on the filtered frequencies.
Can I do anything here without upsampling the signal? Which other filters may I use?