This function calculates the Pollen Index (PI), which is implemented as the average amount of annual pollen collected based on the input data

pollen_index(value, date)

Arguments

value

pollen concentration values

date

dates

Examples

data(pollen_count)
df <- subset(pollen_count, site == 'Oz')
pollen_index(value = df$birch, date = df$date)
#> [1] 5185.955