An official website of the United States government.

This is not the current EPA website. To navigate to the current EPA website, please go to www.epa.gov. This website is historical material reflecting the EPA website as it existed on January 19, 2021. This website is no longer updated and links to external websites and some internal pages may not work. More information »

CADDIS Volume 4

Using Taxon-Environment Relationships: Download Files and Set Up R

Download Files and Set Up R

  1. Confirm that you have a working copy of R on your computer.
  2. Set up a new workspace (see R Command Line Tutorial).
  3. Launch R.
  4. Install the library of R scripts by typing at the R prompt:
    install.packages("bio.infer")
  5. Load the inference library into your current session of R by typing at the R prompt:
    library(bio.infer)
  6. Load a set of taxon-environment relationships.
    When this module was last updated, taxon-environment relationships were only available for stream temperature and sediment, based on data from the western United States. Relationships for other environmental factors and other geographic regions will be added to the library in the future.

    Load the taxon-environment relationships by typing at the R prompt:
    data(coef.west.wt)

Top of Page