Learn R Programming

grates (version 1.4.3)

print.grates_month: Format and print a month object

Description

Format and print a month object

Usage

# S3 method for grates_month
print(x, format = "%Y-%b", sep = "to", ...)

# S3 method for grates_month format(x, format = "%Y-%b", sep = "to", ...)

Value

For format(), a character vector representing the formatted input. print() is called for the side effect of printing to screen and thus returns the input <grates_month> object invisibly.

Arguments

x

A <grates_month> object.

format

[character]

The format to use for the bounds of each value.

sep

[character]

Where more than one month is grouped with others, sep is placed between the upper and lower bounds when printing.

...

Not currently used.