View source: R/unavco_methods.R
consistent | R Documentation |
Make the downloaded data consistent in time
consistent(dat, ...) ## Default S3 method: consistent(dat, ...) ## S3 method for class 'unavco' consistent(dat, ...) ## S3 method for class 'zoo' consistent(dat, verbose = TRUE, ...)
dat |
downloaded data to fortify |
... |
additional parameters |
verbose |
logical; should messages be given? |
unavco_dataload
and unavco-methods
consistent(1:10) # does nothing but return # ensures all possible data points are represented library(zoo) xc <- consistent(zoo(1:9, c(1,3:10))) # note the NA at index 2 na.approx(xc) # interpolate, for example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.