| extract | R Documentation |
smw objectFunctions to extract results and breakpoints from a smw object
## S3 method for class 'smw' extract(smw, w = NULL, index = "dp", sig = "z", z = 1.85, BPs = "max", seq.sig = 3) ## S3 method for class 'dp' bp(dp)
smw |
An object of class |
w |
Numeric. A "target" window size from which results will be extracted (see Details). Only effective if the |
index |
The result to be extracted:
|
sig |
Significance test for detecting dissimilarity values that differs significantly from those appearing in a random pattern. The following tests are considered with default to
|
z |
The critical value for the significance of z-values. Defaults to |
BPs |
Defines if the breakpoints should be chosen as those sample positions corresponding to the maximum dissimilarity in a sequence of significant values ( |
seq.sig |
The maximum length of consecutive, significant values of dissimilarity that will be considered in defining the community breakpoints. Defaults to |
dp |
An object of class |
If the smw object contains results from multiple window sizes, the DP table will be based on the average Z-score over the set of analysed window sizes. Available methods for class "dp" are print, bp and plot.
The argument w is optional. If the smw object is length 1, w is ignored. If length(smw)>1 and w is NULL, the function will extract the dissimilarity profile averaged over the set of window sizes.
"extract" returns a result called by the argument index (see Details);
"bp" returns the locations of the breakpoints.
plot.smw.
data(sim1) sim1o<-OrdData(sim1$envi,sim1$comm) ws50<-SMW(yo=sim1o$yo,ws=50) ws50_dp<-extract(ws50) head(ws50_dp)