Description Usage Arguments Value Author(s) Examples
This function remove those pollen data below a quality threshold specified by the user.
1 | removeLowQualitySamples(p, threshold = 0.5)
|
p |
Matrix. Community matrix of pollen data. This matrix should have a column called "mean.quality" indicating a quality value for each data. |
threshold |
Value. This value should indicate the quality threshold to be keep in the output matrix. All the data with a quality below this threshold will be removed from the output. |
Matrix. Community matrix with the same number of species than the input community matrix but with less sites, since those that doesn't reach the quality threshold are removed.
Diego Nieto Lugilde
1 2 3 4 5 6 7 8 9 10 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (p, threshold = 0.5)
{
pN <- p[which(p$mean.quality > threshold), ]
return(pN)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.