README.md

Aquatic Foods Composition Database (cleaned)

Overview

This R package contains a cleaned version of the Aquatic Foods Composition Database (AFCD) developed by Golden et al. (2016):

Installation

The "AFCD" R package can be installed from GitHub with:

# Run if you don't already have devtools installed
install.packages("devtools")

# Run once devtools is successfully installed
devtools::install_github("cfree14/AFCD", force=T)
library(AFCD)

Datasets

The package contains the following datasets:

  1. Aquatic Foods Composition Database (foods ID'ed by scientific names): ?afcd1
  2. Aquatic Foods Composition Database (foods ID'ed by general food names only): ?afcd2
  3. Aquatic Foods Composition Database nutrient key: ?afcd_nutrients
  4. Aquatic Foods Composition Database reference key: ?afcd_refs

The data were accessed from this Harvard Dataverse repository with additional information accessed via this GitHub repository. The data were formatted by Chris Free. Please contact Chris Free (cfree14@gmail.com) with questions about this repository and the original authors with questions about the data or paper.

How were the data cleaned?

The data were cleaned by doing the following:

  1. Converting from wide to long format to (1) clarify nutrient identity and units and (2) ease plotting and analysis
  2. Filling in missing nutrient information (e.g., missing units)
  3. Harmonizing nutrient names and descriptions
  4. Validating and harmonizing taxonomic information
  5. Adding a harmonized common name corresponding to the scientific name
  6. Building a species taxonomic reference key to reduce columns and enforce consistency
  7. Building a single reference key merging meta-data on FCT and peer-reviewed sources
  8. Carefully harmonizing columns across the data and keys

Citation

Please reference the original paper when using this data:



cfree14/AFCD documentation built on Jan. 2, 2022, 1:22 a.m.