calc_is_daytime: Determines if specified datetime is during the daytime...

View source: R/calc_is_daytime.R

calc_is_daytimeR Documentation

Determines if specified datetime is during the daytime Returns T/F indicating whether a datetime occurs during the daytime (sunlight hours)

Description

Determines if specified datetime is during the daytime Returns T/F indicating whether a datetime occurs during the daytime (sunlight hours)

Usage

calc_is_daytime(datetimes, lat)

Arguments

datetimes

Vector of dates as POSIXct or POSIXlt (see DateTimeClasses) format, but in SOLAR time

lat

Single latitude value of site. South should be negative, north positive

Value

a boolean vector of same length as datetimes

Author(s)

Luke A. Winslow

See Also

calc_sun_rise_set

Examples

## Not run: 
# Warning: this function is deprecated.
calc_is_daytime(datetimes=as.POSIXct(paste('2013-03-31', c('1:00','11:00'))), lat=40.75)

## End(Not run)

USGS-R/streamMetabolizer documentation built on Aug. 15, 2023, 7:50 a.m.