is_day: Use time and location to find if events occured during the...

Description Usage Arguments See Also Examples

Description

Use time and location to find if events occured during the day or the night

Usage

1
2
is_day(time, lat, lon, elevlim = c(-18, 18), type = c("character",
  "logical"))

Arguments

time

a POSIXlt, POSIXct or data.frame. If a data frame order of columns must be from Year to Second (6 columns).

lat

numeric vector of latitudes.

lon

numeric vector of longitudes.

elevlim

Sun elevation thresholds to distinguish between day and night

type

Should the output type be logical (TRUE for days, FALSE for night and NA otherwise) OR character ("Day", "Night", "Transition" and NA for missing locations).

See Also

sun_position

Examples

1
2
3
4
## Not run: 
do.call(is_day, exses$stat[ , c("time", "lat", "lon")])

## End(Not run)

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.