Cast a specific month in a specific year as per XMLSchema gYearMonth. Usual lexical representation is: YYYY-MM.

types.castYearmonth(format, value)

Arguments

format

no options (other than the default)

value

list or string with yearmonth to cast

See also

Examples

types.castYearmonth(format = "default", value = list(2000, 10))
#> [[1]] #> [1] 2000 #> #> [[2]] #> [1] 10 #>
types.castYearmonth(format = "default", value = "2018-11")
#> [[1]] #> [1] 2018 #> #> [[2]] #> [1] 11 #>