numericToDate: Change numeric to date

View source: R/date_format.R

numericToDateR Documentation

Change numeric to date

Description

Change a numeric value to a date object by specifying a date of origin.

Usage

numericToDate(x, date.origin = DATE.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

Value

A date object, converted from a numeric object.

Author(s)

Samuel Leung

See Also

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

Examples

numericToDate(10)
numericToDate(10, "2000-09-11")

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