GetOriginGroupingPreset {hivPlatform}R Documentation

GetOriginGroupingPreset

Description

Get mapping from RegionOfOrigin to GroupOfOrigin

Usage

GetOriginGroupingPreset(type = "REPCOUNTRY + UNK + OTHER", distr)

Arguments

type

Grouping type. Default = 'REPCOUNTRY + UNK + OTHER'

distr

Distribution of RegionOfOrigin

Examples

distr <- data.table::data.table(
  origin = c('REPCOUNTRY', 'SUBAFR'),
  count = c(1536, 2237)
)
GetOriginGroupingPreset(
  type = 'REPCOUNTRY + UNK + 3 most prevalent regions + OTHER',
  distr = distr
)


[Package hivPlatform version 2.0.5 Index]