weekends_length: Number of weekdends days in the period.

View source: R/methods.R

weekends_lengthR Documentation

Number of weekdends days in the period.

Description

Method for get number of weekdays days in period. Weekends is suturday and sunday.

Usage

weekends_length(x)

Arguments

x

tpr object or date vector

Value

Integer

Author(s)

Alexey Seleznev

Examples

pm <- previous_month()
# weekends day number
pm_wd_len <- weekends_length(pm)

selesnow/timeperiodsR documentation built on Jan. 27, 2024, 7:32 a.m.