Giter Club home page Giter Club logo

rrarefy.record's Introduction

This R function resamples randomly and without replacement counts (for instance pollen counts), and calculates rarefied richness (N0), diversity (N1, N2) and evenness (N2/N0) (after Hill (1973) and Birks et al. (2016)).

For additional details, please refer to Finsinger et al. (2017), or contact me directly.


The R function requires a data.frame and input parameters:

One data.frame formatted as:

  • Column 1: sample depths
  • Column 2: sample ages
  • Columns 3-n: counts for n taxa

Input parameters:

  • counts.file = name of the data.frame.
  • site.name = site name
  • zones = zone boundaries. By default zones=NULL
  • n.random = number of samples taken randomly and without replacement. By default n.random=1000

To run the analysis simply:

Load the R script into the R Environment:

source("rrarefy.record.r")

Load the data file into the R Environment:

my.data <- read.csv("my_data.csv")

Run the rrarefy.record analysis:

my.data.rar <- rrarefy.record(my_data, site.name="My Site")

Output:

The function creates an output to the Environment.

An output figure can be plotted using the dedicated plotting function:

plot(my.data.rar)

Dependencies

The function uses the rrarefy() function from the 'vegan' package (Oksanen et al. 2016) to draw random samples without replacement.


References:

Birks, H.J.B., Felde, V.A., Bjune, A.E., Grytnes, J.-A., Seppä, H., Giesecke, T., 2016. Does pollen-assemblage richness reflect floristic richness? A review of recent developments and future challenges. Review of Palaeobotany and Palynology 228, 1–25. http://dx.doi.org/10.1016/j.revpalbo.2015.12.011

Finsinger, W., Morales-Molino, C., Gałka, M., Valsecchi, V., Bojovic, S., Tinner, W., 2017. Holocene vegetation and fire dynamics at Crveni Potok, a small mire in the Dinaric Alps (Tara National Park, Serbia). Quaternary Science Reviews 167, 63–77. http://dx.doi.org/10.1016/j.quascirev.2017.04.032

Hill, M.O., 1973. Diversity and Evenness: A Unifying Notation and Its Consequences. Ecology 54, 427–432. http://onlinelibrary.wiley.com/doi/10.2307/1934352/abstract

Oksanen, J., Blanchet, G.B., Friendly, M., Kindt, R., Legendre, P., McGlinn, D., Minchin, P.R., O’Hara, R.B., Simpson, G.L., Solymos, P., Stevens, M.H.H., Szoecs, E., Wagner, H., 2017. vegan: Community Ecology Package. R package version 2.4-1. https://CRAN.R-project.org/package=vegan

rrarefy.record's People

Contributors

wfinsinger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.