powered by
Given a data.frame with columns representing days and months, returns a vector of indices representing which cycle each row corresponds to.
data.frame
get_cycle(data, day, month, day.end, month.end)
a data.frame
name of the column representing the days
name of the column representing the months
which day determines the end of a cycle?
which month determines the end of a cycle?
A vector of integers.
# NOT RUN { data(valentia) # cycle ends on 31st of October valentia$cycle <- get_cycle(data = valentia, day = "day", month = "month", day.end = 31, month.end = 10) # }
Run the code above in your browser using DataLab