Identify metabolic days in a time series based on sunrise and sunset times for a location and date. The metabolic day is considered the 24 hour period between sunsets for two adjacent calendar days. The function calls the getSunlightTimes
function from the suncalc package.
metab_day(dat_in, ...)# S3 method for default
metab_day(dat_in, tz, lat, long, ...)
data.frame
arguments passed to or from other methods
chr string for timezone, e.g., 'America/Chicago'
numeric for latitude
numeric for longitude (negative west of prime meridian)
This function is only used within ecometab
and should not be called explicitly.
ecometab
, getSunlightTimes