build_cod_matrix | R Documentation |
Transform the COD count data from a long table to a matrix containing percentages, with ages as rows and cod's as columns.
build_cod_matrix(cod)
cod |
COD long table |
A matrix with percentages.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.