knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of twilight is to provide an R wrapper for the sun/moon rise/set data at http://aa.usno.navy.mil/data/docs/RS_OneYear.php
# install.packages("devtools") devtools::install_github("jsta/twilight")
library(twilight)
head( sunsetrise_yr(year = 2015, lon_deg = 80, lon_min = 26, lat_deg = 25, lat_min = 5, tz = 5) )
head( tw_daylength(year = 2015, lon_deg = 80, lon_min = 26, lat_deg = 25, lat_min = 5, tz = 5) )
head( sunsetrise_yr(year = 2015, state = "FL", city = "Key Largo") )
head( tw_daylength(year = 2015, state = "FL", city = "Key Largo") )
Contributions welcome in the form of pull requests and issues!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.