Description Usage Arguments Details Value Author(s) Examples
Thin large data sets to contain fewer observations
1 |
data |
A data.frame. |
xy |
A numeric vector designating the columns where x and y are located in data. |
by |
An integer specifying the thinning rate. Analogous to the |
This function is used do reduce the size of large data sets to improve
overall computation time for rankLocReg
. locReg
takes
approximately 5 minutes to complete for data sets of ~500 observations, and
computation time increases exponentially with larger data sets. Provided that the
data is of suitably high resolution, thinning larger data sets is a reasonable
solution for reducing this computation time.
A list of data frames with thinned observations.
Colin Olito. #'
1 2 3 4 5 6 | # load sea urchin respirometry data
data(UrchinData)
head(UrchinData)
# thin data for individual "D" by 1/2
newData <- thinData(UrchinData, xy=c(1,5), by=2)
head(newData[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.