Learn R Programming

tableschema.r (version 1.1.2)

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