Learn R Programming

fishstat (version 2025.1.0.0)

country: Countries

Description

Countries and various territories, defined by FAO (2025).

Usage

country

Arguments

Format

Data frame containing eight columns:

countrycountry code
country_namecountry name
iso2ISO 2-alpha code
iso3ISO 3-alpha code
continentcontinent
georegiongeographic region
ecoclasseconomic class
officialofficial country name

Details

This data frame contains the full set of 275 data records from the FishStat Country Groups 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
head(country)

# Regions within continents
table(country$georegion, country$continent)

# Select 'country' entries that have non-zero production
nonzero <- unique(production$country[production$value > 0])
country.nz <- country[country$country %in% nonzero,]
length(country.nz$country)

# Only 'country' and 'country_name' are always defined
cbind(sapply(country, function(x) all(x != "")))

# Plus 'ecoclass' and 'official' for non-zero production
cbind(sapply(country.nz, function(x) all(x != "")))

# Economic class levels
sort(unique(country$ecoclass))

# Examine individual countries
print.simple.list(country[country$iso2 == "IS",])
print.simple.list(country[country$country_name == "Samoa",])

Run the code above in your browser using DataLab