datagrabber.declustered | R Documentation |
Get the original data set used to obtain the resulting R object for which a method function exists.
## S3 method for class 'declustered' datagrabber(x, ...) ## S3 method for class 'extremalindex' datagrabber(x, ...) ## S3 method for class 'fevd' datagrabber(x, response = TRUE, cov.data = TRUE, ...)
x |
An R object that has a method function for |
response, cov.data |
logical; should the response data be returned? Should the covariate data be returned? |
... |
optional arguments to |
Accesses the original data set from a fitted fevd
object or from declustered data (objects of class “declustered”) or from extremalindex
.
The original pertinent data in whatever form it takes.
Eric Gilleland
datagrabber
, extremalindex
, decluster
, fevd
, get
y <- rnorm(100, mean=40, sd=20) y <- apply(cbind(y[1:99], y[2:100]), 1, max) bl <- rep(1:3, each=33) ydc <- decluster(y, quantile(y, probs=c(0.95)), r=1, blocks=bl) yorig <- datagrabber(ydc) all(y - yorig == 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.