This function calculates the frequency of the disease in the observed population, i.e. the number of sampled units (leaves, bunches, plants, etc.) infected expressed as a percentage of the total number of units observed.
Exemples
vec <- c(1, 2, 3, 0, 5, 6, 0)
incidence(vec)
#> [1] 71.42857