print.grates_yearmonth: Format and print a yearmonth object

View source: R/yearmonth-class.R

print.grates_yearmonthR Documentation

Format and print a yearmonth object

Description

Format and print a yearmonth object

Usage

## S3 method for class 'grates_yearmonth'
print(x, format = "%Y-%b", ...)

## S3 method for class 'grates_yearmonth'
format(x, format = "%Y-%b", ...)

Arguments

x

A ⁠<grates_yearmonth>⁠ object.

format

⁠[character]⁠

The format to use for printing.

...

Not currently used.

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_yearmonth>⁠ object invisibly.


grates documentation built on April 3, 2025, 10:49 p.m.