logical value controlling the handing of zeros in the data. If TRUE, the
zero values are replaced with NAs prior to converting to decibels, avoiding an error when
attempting to take the logarithm of zero.
type
an integer signifying the decibel form to use in the conversion.
If type=1 \(10 * log10(x)\) is used to convert the input
and \(20 * log10(x)\) is used for type=2.