scal2freqR function

Scale to frequency by R