The LogT() function returns a logarithmic transformation of the provided time series. A natural log is returned by default. LogT.rev() reverses the transformation.
LogT(x, base = exp(1))LogT.rev(x, base = exp(1))
Arguments
x: A numeric vector or univariate time series of class ts.
base: A numeric value corresponding to the base with respect to which logarithms are computed. Default: exp(1).
Returns
A vector of the same length as x containing the transformed values.
Examples
data(NN5.A)LogT(NN5.A[,10])
References
R. H. Shumway, D. S. Stoffer, Time Series Analysis and Its Applications: With R Examples, Springer, New York, NY, 4 edition, 2017.