| dm_wavelet | R Documentation |
Performs continuous wavelet analysis on dendrometer time series.
The function can work with:
raw dendrometer series from a data frame,
detrended dendrometer series from dm.detrend.fit() output,
first differences of either raw or detrended series.
It automatically:
identifies the temporal resolution of the input series,
regularizes the series to a complete time grid,
optionally interpolates missing values,
performs wavelet analysis separately for each selected tree/series,
converts wavelet periods to hours for summary and plotting.
dm_wavelet(
x,
TreeNum = "all",
source = c("auto", "raw", "detrended", "first_diff"),
detrended_col = c("detrended_data"),
na_action = c("interpolate", "fail"),
loess_span = 0.75,
dj = 1/20,
lowerPeriod = NULL,
upperPeriod = NULL,
make_pval = TRUE,
n_sim = 10,
verbose = TRUE
)
x |
Input data. Either:
|
TreeNum |
Either |
source |
Which series to analyze. One of:
|
detrended_col |
For |
na_action |
How to handle missing values after completing the regular time grid. One of:
|
loess_span |
Smoothing span passed to |
dj |
Frequency resolution parameter passed to
|
lowerPeriod |
Optional lower period bound in native time units of the
detected input resolution. If |
upperPeriod |
Optional upper period bound in native time units of the
detected input resolution. If |
make_pval |
Logical; if |
n_sim |
Number of simulations used when |
verbose |
Logical; if |
An object of class "dm_wavelet" with elements:
The matched function call.
Either "raw" or "dm_detrended".
Series source actually used.
Character vector of analyzed series names.
Detected time unit of the input series.
Detected time step in native units.
Detected time step expressed in hours.
Detected time step in seconds.
Regularized time series used for analysis.
Named list of wavelet results, one per series. Each entry
contains the original WaveletComp object plus time and
period-in-hours information.
Analysis settings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.