timeperiodsR (version 0.6.2)

weekends_length: 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)

Value

Integer

Arguments

x

tpr object or date vector

Author

Alexey Seleznev

Examples

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

Run the code above in your browser using DataCamp Workspace