dailyCalendar: Creates a Calendar in R

Description Usage Arguments Value Author(s) Examples

View source: R/dailyCalendar.R

Description

Creates a daily calendar in R.

Usage

1
2
3
4
5
6
7
8
WeekDays(startOn = "Monday", abbreviate = FALSE)

dailyCalendar(
  startDate = Sys.Date(),
  days = 30,
  startOn = "Monday",
  fancy = FALSE
)

Arguments

startOn

The day of the week to start on. Defaults to "Monday".

abbreviate

Logical. Should the result be the abbreviated weekday name? Defaults to FALSE.

startDate

What should be the first date in the calendar? Defaults to Sys.Date().

days

How many days do you want in your calendar? Defaults to 30.

fancy

Logical. Should a more nicely formatted version of the calendar be displayed? Defaults to FALSE.

Value

A vector, a data.frame, or a list, depending on which function is called with what arguments.

Author(s)

Ananda Mahto

Examples

1
2
3
4
5
WeekDays()
WeekDays("Thursday", TRUE)
dailyCalendar(startDate = "2013-12-27", days = 10)
dailyCalendar(startDate = "2013-12-27", days = 10, startOn = "Friday")
dailyCalendar(days = 40, fancy = TRUE)

mrdwab/SOfun documentation built on June 20, 2020, 6:15 p.m.