View source: R/calculate-nutrients.R
get_nutrients_table | R Documentation |
Download the modelled nutrional properties of each taxa according to Hicks et al., 2019 (https://www.nature.com/articles/s41586-019-1592-6). The table of nutrients for each taxon is directly called from the paper repository (https://github.com/mamacneil/NutrientFishbase).
get_nutrients_table(pars, summarise = TRUE, convert = TRUE)
pars |
The configuration file. |
summarise |
Whether you want to summarise the nutritional values for each group. The function use the median by default. |
convert |
Whether you want to convert the nutritional values units to grams. See details for the default starting units. |
Starting units for each nutrient:
mg/100g: Calcium, Iron and Zinc.
μg/100g: Selenium and Vitamin A.
g/100g: Omega 3 and Protein.
A data frame with nutritional values for each taxa group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.