Learn R Programming

rwunderground (version 0.1.8)

astronomy: Moon phase, sunrise and sunset times for today.

Description

Moon phase, sunrise and sunset times for today.

Usage

astronomy(location, key = get_api_key(), raw = FALSE, message = TRUE)

Arguments

location

location set by set_location

key

weather underground API key

raw

if TRUE return raw httr object

message

if TRUE print out requested URL

Value

tbl_df with: location, moon phase, percent visible, moon rise and set times, sun rise and set times.

Examples

Run this code
# NOT RUN {
astronomy(set_location(territory = "Hawaii", city = "Honolulu"))
astronomy(set_location(airport_code = "SEA"))
astronomy(set_location(zip_code = "90210"))
astronomy(set_location(territory = "IR", city = "Tehran"))
# }

Run the code above in your browser using DataLab