Skip to contents

Add column `basal_disease` to tidy dataset

Usage

add_basal_disease(data, lookup)

Arguments

data

A tidy data set with a `disease` column.

lookup

A lookup table with `disease` and `nesting_disease` columns that describe a global disease hierarchy that will be applied to find the basal disease of each `disease` in data.

Value

tidy dataset with basal disease