powered by
Embeds timeseries given an embedding dimension (`E`) and a time lag (`tau`).
embed_ts(X, E, tau = 1, sample_times = NULL)
A matrix where the first column is last time index of the window and the second column is the estimated index value.
A numeric matrix of species abundances, names across columns, time across rows. The first column is a time vector, the remainder are species values.
Numeric. Embedding dimension.
Numeric. Time lag.
Numeric vector. Defines the time indices to subset prior to embedding.
#Load the multivariate simulated #dataset `simTransComms` data(simTransComms) #Embed one timeseries by 5 time points eg_embed <- embed_ts(X = simTransComms$community2[,2:3], E = 5, tau = 1)
Run the code above in your browser using DataLab