accessors: Accessors

Description Usage Arguments Examples

Description

Generics and methods to work with grouped date objects:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
get_week(x, ...)

## Default S3 method:
get_week(x, ...)

## S3 method for class 'yrwk'
get_week(x, ...)

get_month(x, ...)

## Default S3 method:
get_month(x, ...)

## S3 method for class 'yrmon'
get_month(x, style = c("numeric", "named"), ...)

get_quarter(x, ...)

## Default S3 method:
get_quarter(x, ...)

## S3 method for class 'yrqtr'
get_quarter(x, ...)

get_year(x, ...)

## Default S3 method:
get_year(x, ...)

## S3 method for class 'yrwk'
get_year(x, ...)

## S3 method for class 'yrmon'
get_year(x, ...)

## S3 method for class 'yrqtr'
get_year(x, ...)

get_firstday(x, ...)

## Default S3 method:
get_firstday(x, ...)

## S3 method for class 'yrwk'
get_firstday(x, ...)

get_interval(x, ...)

## Default S3 method:
get_interval(x, ...)

## S3 method for class 'period'
get_interval(x, days = FALSE, ...)

## S3 method for class 'yrwk'
get_interval(x, days = FALSE, ...)

## S3 method for class 'yrmon'
get_interval(x, days = FALSE, ...)

## S3 method for class 'yrqtr'
get_interval(x, days = FALSE, ...)

get_firstdate(x, ...)

## Default S3 method:
get_firstdate(x, ...)

## S3 method for class 'period'
get_firstdate(x, ...)

Arguments

x

A yrwk, yrmon, yrqtr or period object.

...

Not used.

style

Either "numeric" (default) for the integer month value or "named" to return the abbreviated month name in the current locale.

days

Should periods be converted in to a number of days.

Examples

1
2
3
4

tjtnew/grates documentation built on Feb. 6, 2021, 6:12 p.m.