Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


tableschema.r (version 1.1.1)

types.castYear: Cast year

Description

Cast year. A calendar year as per XMLSchema gYear. Usual lexical representation is: YYYY.

Usage

types.castYear(format, value)

Arguments

format

no options (other than the default)

value

year to cast

See Also

Examples

Run this code

types.castYear(format = "default", value = 2000)

types.castYear(format = "default", value = "2010")

Run the code above in your browser using DataLab