Learn R Programming

optimos.prime (version 0.1.2)

op_lists: Optimos Prime calculates optima and tolerance for a matrix of species and environmental factors

Description

You will need two dataframes. If they are not specified as arguments, you will be prompted to import them from CSV format.

  • Matrix 1: Species (rows) by Sampling sites (columns). First row needs to be the sampling sites names. First column needs to be the species' names. Values in cells therefore need to be the density of each species at each site.

  • Matrix 2: Environmental variables (rows) by Sampling sites (columns). First row needs to be the sampling sites names. First column needs to be the names of the environmental variables (i.e. physical-chemical parameters). Values in cells therefore need to be the value of each environmental variable at each site.

Usage

op_lists(environmental_df, species_df, listOnly = 0)

Arguments

environmental_df

The dataframe with your environmental data. Variables as rows, Sites as columns

species_df

The dataframe with your species densities. Species as rows, Sites as columns.

listOnly

Which lists to return. If = 0, then returns all three lists combined (Sites, Species, Environmental). If = 1, it returns only lists of Sites. If = 2, it returns only list of Species. If = 3, it returns only list of Environmental parameters.

Details

This function (op_lists) generates three lists from your dataframes: a species list, an environmental factors list and a sample (or sampling sites) list