Skip to contents

find_index_period()finds compatible period between index series

Usage

find_index_period(index, year = NULL, part = c("end", "start"))

Arguments

index

list of (INSEE) index

year

integer which year to find

part

character which part of series shall be found, "start" or "end". Default to "end".

Value

A character corresponding to period found

Examples


if (FALSE) { # \dontrun{
index_month = read_insee_serie(download_insee_index(c("001710986", "011818120")))
find_index_period(index_month)
find_index_period(index_month, 2025)
find_index_period(index_month, part = "start")

index_year = read_insee_serie(download_insee_index(c("010538819", "010776418")))
find_index_period(index_year)
find_index_period(index_year, part = "start")

find_index_period(c(index_month, index_year))
} # }