get_cycle: Obtain Yearly Cycles

Description Usage Arguments Value Author(s) Examples

View source: R/get_cycle.R

Description

Given a data.frame with columns representing days and months, returns a vector of indices representing which cycle each row corresponds to.

Usage

1
get_cycle(data, day, month, day.end, month.end)

Arguments

data

a data.frame

day

name of the column representing the days

month

name of the column representing the months

day.end

which day determines the end of a cycle?

month.end

which month determines the end of a cycle?

Value

A vector of integers.

Author(s)

Rafael de Andrade Moral (rafael.deandrademoral@mu.ie) and Rowan Fealy

Examples

1
2
3
4
5
data(valentia)

# cycle ends on 31st of October
valentia$cycle <- get_cycle(data = valentia, day = "day", month = "month",
                            day.end = 31, month.end = 10)

phenModel documentation built on Aug. 2, 2019, 5:05 p.m.