removeLowQualitySamples: Remove low quality pollen data.

Description Usage Arguments Value Author(s) Examples

Description

This function remove those pollen data below a quality threshold specified by the user.

Usage

1
removeLowQualitySamples(p, threshold = 0.5)

Arguments

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.

Value

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.

Author(s)

Diego Nieto Lugilde

Examples

 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)
  }

dinilu/paleoCLMs-package documentation built on May 15, 2019, 8:46 a.m.