Skip to contents

Splits a six-character YYYYMM value into a hyphenated "YYYY-MM" string. NA is returned unchanged.

Usage

as_yyyymm(x)

Arguments

x

A single YYYYMM value (numeric or character).

Value

A "YYYY-MM" character string, or NA if x is NA.

See also