<< nanvar Basic functions newey_west >>

Grocer >> Basic functions > nb_days_permonth

nb_days_permonth

number of a peculiar day of the week in months

CALLING SEQUENCE

ts=nb_days_permonth(list_years,rank_day)

PARAMETERS

Input

* list_years = a real vector of size (2 x 1), collecting the years range to deal with

* rank_day = rank of the day in the week (1 for Monday, 2 for Tuesday, ...)

Output

* ts = a tlist, collecting for each month the number of days of rank rank_day in the month

DESCRIPTION

Calculates the number of a peculiar day (Monday, Tuesday...) of the week in selected months.

EXAMPLE

// performs the ts of the number of Mondays per month from 2000 to 2026
nb_mondays_pm=nb_days_permonth([2000;2026],1)

AUTHOR

Éric Dubois 2026

Report an issue
<< nanvar Basic functions newey_west >>