code2month: Get month from maturity code

View source: R/scraper-futures.R

code2monthR Documentation

Get month from maturity code

Description

Get the corresponding month for the string that represent maturities of futures contracts.

Usage

code2month(x)

Arguments

x

a character with letters that represent the month of maturity of futures contracts.

Value

a vector of integers

Examples

code2month(c("F", "G", "H", "J", "K", "M", "N", "Q", "U", "V", "X", "Z"))
code2month(c("JAN", "FEV", "MAR", "NOV", "DEZ"))

rb3 documentation built on April 14, 2023, 5:10 p.m.