HHI_table: Table of HHI of overall catch of clusters.

View source: R/FleetSegmentation.R

HHI_tableR Documentation

Table of HHI of overall catch of clusters.

Description

This function creates an overview table of the Herfindahl-Hirschmann Index (HHI) of the catch clusters. The HHI is equivalent to the Simpson Index, it is a measure of degree of concentration/consolidation. In case of fisheries catch data, it indicates, whether a fishery is of rather targeted or mixed nature. The HHI can take values between 0 and 1. An index value below 0.25 indicates a highly mixed fishery, between 0.25 and 0.5 a rather mixed fishery, between 0.5 and 0.75 a rather targeted fishery and above 0.75 a highly targeted fishery. The result of the function is a data frame, which can be printed or stored as an object. Alternatively, an html-table can be created by setting style = "html".

Usage

HHI_table(data, clustering, style = "basic")

Arguments

data

The original, untransformed data that was used for the clustering.

clustering

The result of the clustering procedure, stored as a data frame.

style

The style, in which the result is printed. Defaults to "basic". "html" produces an html-table.

Examples

data <- example_catchdata
stockdata <- assign_stocks(data=data)
catchdata <- catchdata_transformation(data = stockdata)
clustering <- segmentation_clustering(catchdata = catchdata,n_cluster = 6)
HHI_table(data = stockdata,clustering = clustering)

ESulanke/FleetSegmentation documentation built on March 27, 2023, 10:13 p.m.