Description Usage Arguments Value Details References Examples
The function prep_fa
processes the information in a fatty acid
suites data frame and prepares that information for application to fatty
acid signatures.
1 | prep_fa(df_fa)
|
df_fa |
A data frame containing fatty acid names, calibration
coefficients, and 0/1 definitions of fatty acid suites. |
A list containing the following elements:
A numeric vector of calibration coefficients.
A logical vector defining a fatty acid suite.
A character vector of fatty acid names.
An integer error code (0 if no error is detected).
A string contains a brief summary of the execution.
This function is designed to be called by the user after the fatty acid data frame has been read. The data frame should contain a complete list of all fatty acids in the prey and predator signature data, one or more sets of calibration coefficients with an indicator of which set to use, one or more fatty acid suite definitions with an indicator of which suite to use, and optional comments. Please refer to the vignette for additional information.
The fatty acid data frame must strictly meet the following formatting requirements.
The first row must contain a header for each column.
The second row must list "use_me" in the first column, a 1 in the column for the set of calibration coefficients to be used, a 1 in the column for the fatty acid suite to be used, and a 0 in all other columns.
Starting with row three, the first column must contain fatty acid names, which must exactly match the corresponding components of the headers in any prey and predator signature data frames.
Starting with row three, Columns 2 to k must contain calibration coefficients for each fatty acid. Multiple sets of calibration coefficients can be in the data frame. The set to be used must contain a 1 in Row 1 and the others must contain a 0 in Row 1.
Columns k+1 to m must contain one or more definitions of fatty acid suites. Membership in a suite is defined by 0/1 indicators, with a 1 indicating membership. Definitions for multiple suites can be in the data frame. For example, two columns could contain indicators defining membership in the dietary and extended-dietary suites of fatty acids (Iverson et al. 2004). The suite to be used must contain a 1 in Row 1 and the others must contain a 0 in Row 1.
An optional last column can contain comments.
Please see the vignette for examples of how to format this data frame.
Iverson, S.J., C. Field, W.D. Bowen, and W. Blanchard. 2004. Quantitative fatty acid signature analysis: A new method of estimating predator diets. Ecological Monographs 74:211-235.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.