Description Usage Arguments Value Author(s) Examples
given the latitude and longitude of any day calculate the time of sunrise and sunset. Aquired from..... the internet
1 | sunCalc(d, lat, long)
|
d |
POSIX item representing the day of interest |
lat |
Latitude of location in decimal degrees |
long |
Longitude of location in decimal degrees |
returns a list with two levels
sunrise |
a vector in the list that is composed of the hour of the day in decimal hours that the sun will rise |
sunset |
a vector in the list that is composed of the hour of the day in decimal hours that the sun will set |
Connor F. White
1 2 3 4 5 6 7 8 9 10 11 | day<-as.POSIXct("2016-01-01")
sunCalc(day,lat=33.5,long=-118.5)
#if we move the location
sunCalc(day,lat=40.5,long=-115)
#Or the values for the entire year
end<-as.POSIXct("2016-12-31")
days<-seq(day,end,by="day")
sunCalc(d=days,lat=33.5,long=-118.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.