extract {segRDA} | R Documentation |
Extract results and breakpoints from a smw
object
Description
Functions to extract results and breakpoints from a smw
object
Usage
## 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)
Arguments
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 |
Details
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.
Value
-
"extract"
returns a result called by the argumentindex
(see Details); -
"bp"
returns the locations of the breakpoints.
See Also
Examples
data(sim1)
sim1o<-OrdData(sim1$envi,sim1$comm)
ws50<-SMW(yo=sim1o$yo,ws=50)
ws50_dp<-extract(ws50)
head(ws50_dp)