create_sunset_cal: Create a sunset calendar

Description Usage Arguments Examples

View source: R/create_sunset_cal.R

Description

This function creates a .CSV of sunset appointments–with a user-specified location–that can be imported into Google Calendar.

Usage

1
2
3
create_sunset_cal(date = "2014/01/01", lat = 40.7127, long = -74.0059,
  timezone = "America/New_York", num.days = 365, file = "sunset.csv",
  location = "Brooklyn Heights Promenade, Brooklyn, NY 11201")

Arguments

date

Date at which you want the calendar to start, in yyyy/mm/dd format.

lat

Latitude of location (for sunset time calculation)

long

Longitude of location (for sunset time calculation, will be negative for continental US)

timezone

Timezone of location (for sunset time calculation).

num.days

Number of days you want sunset appointments for.

file

Filename for outputted .CSV file (to be uploaded to Google Calendar).

location

Location of sunset appointment. Will be input into Google Calendar event as the event location.

Examples

1
2
3
4
## Not run: 
create_sunset_cal(location = "40.7127, -74.0059")

## End(Not run)

hilaryparker/hilary documentation built on May 17, 2019, 3:58 p.m.