Learn R Programming

fishstat (version 2025.1.0.0)

source: Sources

Description

Sources of aquaculture and capture production, defined by FAO (2025).

Usage

source

Arguments

Format

Data frame containing two columns:

sourcesource code
source_namesource name

Details

This data frame contains the full set of 4 data records from the FishStat Production Source data table. Column names have been simplified to facilitate quick exploration and plotting in R.

See Also

aquaculture and capture data are also available in a combined production format.

area, country, environment, measure, source, species, and status are lookup tables.

fishstat-package gives an overview of the package.

Examples

Run this code
source

# Analyze production measured in tonnes
prod <- production[production$measure == "Q_tlw" & production$value > 0,]
prod <- merge(prod, source)

# Production by source in 2023, in million tonnes
x <- aggregate(value~source_name, prod, sum, subset=year==2023)
transform(x, value=round(value/1e6))

Run the code above in your browser using DataLab