forked from cran/chillR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJDay_earlier.Rd
41 lines (37 loc) · 1.27 KB
/
JDay_earlier.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/before_after_JDay.R
\name{JDay_earlier}
\alias{JDay_earlier}
\title{Check whether a Julian date is before or after another one}
\usage{
JDay_earlier(check_date, ref_date, season = c(1, 366))
}
\arguments{
\item{check_date}{integer ranging from 1 to 366, indicating a Julian date.
This is the date for which to check whether it is before the reference date.
If this is a vector, all elements are checked against the reference date.}
\item{ref_date}{integer ranging from 1 to 366, indicating a Julian date.
This is the reference date.}
\item{season}{integer vector of length 2, specifying the beginning and end
of the phenology season, respectivcely.}
}
\value{
Boolean result (TRUE/FALSE) of the comparison.
}
\description{
For two Julian dates, this function checks whether the first date
is earlier than the second date within a user-defined phenological season.
This is particularly useful for seasons that start in one year and end
in the next, because simple > or < operations can produce wrong results
then.
}
\examples{
JDay_earlier(check_date=10,ref_date=365,season=c(305,59))
}
\author{
Eike Luedeling
}
\keyword{Julian}
\keyword{date}
\keyword{phenology}
\keyword{season}