YearQuartersFormat: Formatting Functions for mondate Objects

Description Usage Arguments Details Examples

View source: R/mondate.r

Description

Functions to format a mondate into its character representation according to the displayFormat property.

Usage

1

Arguments

x

a mondate or a Date or a POSIXt.

Details

YearQuartersFormat is an example of a special formatting function that can be provided to a mondate object when created. It will represent the date as YYYYQ* where * is 1-4. See Examples

Examples

1
2
b <- mondate(1:12, formatFUN = YearQuartersFormat)   # end of first 12 months of 2000
b         

Example output

Attaching package: 'mondate'

The following object is masked from 'package:base':

    as.difftime

mondate: timeunits="months"
 [1] 2000Q1 2000Q1 2000Q1 2000Q2 2000Q2 2000Q2 2000Q3 2000Q3 2000Q3 2000Q4
[11] 2000Q4 2000Q4

mondate documentation built on Jan. 29, 2021, 5:06 p.m.