calculate_sunrise: Function to calculate sunrise and sunset dates and times for...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/calculate_sunrise.R

Description

calculate_sunrise uses sunriset for the calculation of dates and times.

Usage

1
2
calculate_sunrise(latitude, longitude, start = NA, end = NA,
  tz = "UTC", ...)

Arguments

latitude

Latitude of a location.

longitude

Longitude of a location.

start

Start date, if not used, the default is the system's date.

end

End date, if not used, the default is the system's date.

tz

Time zone to conduct calculations in.

...

A construct to allow for absorption of additional arguments, useful when using function with purrr.

Value

Tibble.

Author(s)

Stuart K. Grange.

See Also

sunriset

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Get sunrise and sunset dates for London for today
calculate_sunrise(latitude = 51.5072, longitude = 0.1275)

# Or specify dates
calculate_sunrise(
  latitude = 51.5072, 
  longitude = 0.1275, 
  start = "2015-12-01", 
  end = "2015-12-31"
)

skgrange/gissr documentation built on Nov. 5, 2019, 2:58 p.m.