select_quarter_level {when} | R Documentation |
Configure quarter level
Description
When the dimension is defined as a date type, using this function we can select the quarter level and its attributes to include in it: quarter number and the combination of the year with it.
Usage
select_quarter_level(td, include_all, exclude_all, quarter, year_quarter)
## S3 method for class 'when'
select_quarter_level(
td,
include_all = FALSE,
exclude_all = FALSE,
quarter = NULL,
year_quarter = NULL
)
Arguments
td |
A |
include_all |
A boolean, include all fields of the level. |
exclude_all |
A boolean, exclude all fields of the level. |
quarter |
A boolean, include the quarter field. |
year_quarter |
A boolean, include the quarter field. |
Details
The include_all
and exclude_all
parameters allow us to include or exclude
all attributes, and then specifically exclude or include the ones we need.
Value
A when
object.
See Also
Other dimension definition:
define_characteristics()
,
define_instances()
,
get_attribute_definition_function()
,
get_day_part()
,
get_week_date_range()
,
select_date_levels()
,
select_day_level()
,
select_month_level()
,
select_semester_level()
,
select_time_level()
,
select_week_level()
,
select_year_level()
,
set_attribute_definition_function()
,
set_day_part()
,
when()
Examples
td <- when() |>
select_quarter_level(quarter = FALSE)