Description Usage Arguments Details Value Author(s) Examples
View source: R/build.isotopeframe.R
Given local filenames leading to tab-delimited files of isotope values, read in the values from the file and store them in a dataframe.
1 2 | build.isotopeframe(pred.file, prey.file, prey.header=TRUE,
pred.header=FALSE, sep="\t")
|
pred.file |
The name of the file containing the predator isotope data. |
prey.file |
The name of the file containing the prey isotope data. |
prey.header |
|
pred.header |
|
sep |
The separator used within the isotope files. Defaults to tab. |
The isotope measurement files allowable for input by the system must be formatted in one of two ways. The first are files containing raw data: they must contain one measurement per line, with the measurement for each isotope separated into columns. If the prey file contains more than a single species, then the measurements for each species must be appended as additional blocks of columns. The columns for each species must preserve the ordering of the isotopes.
The second file format contain the mean and standard deviation of the
isotopic measurements of each species. Each input species will have
it's measurements on a single line, organized like so:
<name of species> <mean of isotope 1> <sd of isotope 1> <mean of
isotope 2> <sd of isotope 2> ...
A final note: predator files may also have more than one species, although any extra predators will be ignored.
prey.frame |
A data frame containing the prey isotopic measurements (or the mean/sd of each isotope). |
pred.frame |
A data frame containing the predator isotopic measurements (or the mean/sd of each isotope). |
Robert Robere
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.