year: Extract year from date

Description Usage Arguments Details Value

View source: R/clean_functions.R

Description

Extract the year from a date variable in multiple formats

Usage

1

Arguments

date

a character object or vector indicating dates in one of three formats: exact date in d/m/Y, exact year without date, and date as number of days since 01/01/1900.

Details

year can handle dates in the following formats: date in d/m/Y, year without date, and date as number of days since 01/01/1900.

Value

The year of the date in date


mdtrinh/vietnamdata documentation built on May 3, 2019, 11:49 p.m.