week_financial: Function to calculate financial week of the year.

View source: R/week_monday.R

week_financialR Documentation

Function to calculate financial week of the year.

Description

Function to calculate financial week of the year.

Usage

week_financial(date, start = "july", floor = TRUE)

Arguments

date

Vector containing parsed dates.

start

The starting month of the financial year. Currently, the only option is "july".

floor

Should weeks which belong to the 53 rd week for the year be rounded down to the 52 nd week? Default is TRUE.

Value

Integer vector.

Author(s)

Stuart K. Grange

See Also

wday, week_monday

Examples

## Not run: 
data_hours$week <- week_financial(data_hours$date)

## End(Not run)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.