weekends_length {timeperiodsR}R 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)

[Package timeperiodsR version 0.7.3 Index]