chr_to_date: Change character to date

View source: R/date_format.R

chr_to_dateR Documentation

Change character to date

Description

Change a numeric value stored as a character string to a date object.

Usage

chr_to_date(x, date.origin = EXCEL.ORIGIN)

Arguments

x

a number that represents the number of days after date.origin

date.origin

the date from which we count the number of days passed

Details

The default date.origin used is the Excel 1900 version.

Value

A date object, converted from a character string.

Author(s)

Derek Chiu

See Also

Other date formatting functions: cleanDate(), formatDate(), getFormat(), numericToDate()

Examples

chr_to_date("41041")

TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.