Skip to contents

Convert a sequence of month integers into their decimal years.

Usage

monthSeqToDec(monthSeq)

Arguments

monthSeq

integer vector of months. Month 1 is considered Jan. 1850.

Examples


months <- 1558:1600
monthSeqToDec(months)
#>  [1] 1979.792 1979.875 1979.958 1980.042 1980.125 1980.208 1980.292 1980.375
#>  [9] 1980.458 1980.542 1980.625 1980.708 1980.792 1980.875 1980.958 1981.042
#> [17] 1981.125 1981.208 1981.292 1981.375 1981.458 1981.542 1981.625 1981.708
#> [25] 1981.792 1981.875 1981.958 1982.042 1982.125 1982.208 1982.292 1982.375
#> [33] 1982.458 1982.542 1982.625 1982.708 1982.792 1982.875 1982.958 1983.042
#> [41] 1983.125 1983.208 1983.292