build_cod_matrix: Format COD data

build_cod_matrixR Documentation

Format COD data

Description

Transform the COD count data from a long table to a matrix containing percentages, with ages as rows and cod's as columns.

Usage

build_cod_matrix(cod)

Arguments

cod

COD long table

Value

A matrix with percentages.

Examples

# cod data
D <- data_gbd2021_cod
# Select COD data for 1 region
cod <- D[D$region == "Romania" & D$sex == "both" & D$period == 1990, ]
# COD data in matrix format

build_cod_matrix(cod)

mpascariu/MortalityCauses documentation built on April 17, 2025, 8:31 p.m.