Learn R Programming

TreeDep (version 0.1.3)

Daylight: Daylight - Generates hourly daylight data ("Night" and "Daylight") in a specific year

Description

Daylight - Generates hourly daylight data ("Night" and "Daylight") in a specific year

Usage

Daylight(shortest_day_sunrise, shortest_day_sunset, longest_day_sunset0, Year)

Arguments

shortest_day_sunrise

Sunrise time in the shortest day in the Northern Hemisphere (December 21) using decimals for minutes (e.g. 8.4)

shortest_day_sunset

Sunset time in the shortest day in the Northern Hemisphere (December 21) using decimals for minutes (e.g. 17.8)

longest_day_sunset0

Sunset time in the longest day in the Northern Hemisphere (June 21) using decimals for minutes (e.g. 21.9)

Year

Year to generate hourly daylight data (e.g. 2015)

Value

A dataframe with hourly daylight values is generated

Examples

Run this code
# NOT RUN {
Daylight (shortest_day_sunrise  = 8.4,
shortest_day_sunset = 17.8,
longest_day_sunset0 = 21.9,
Year = 2016)

# }

Run the code above in your browser using DataLab