Calcualte the index according year and days at a specific period

periodIndex(year, day, period)

Arguments

year

A vector of year

day

A vector of year

period

The periods to count

Value

Generated index according to period