eq_date_clean: Creates a Date variable from year, month, day where year...

Description Usage Arguments Value Examples

View source: R/module1.R

Description

Creates a Date variable from year, month, day where year could be positive (AD) or negative (BC)

Usage

1
eq_date_clean(input_year, input_month, input_day)

Arguments

input_year

An integer (positive or negative) indicating the year. A negative integer represents BC

input_month

An integer indicating the month. If NA, it defaults to 1

input_day

An integer indicating the day of the month. If NA, it defaults to 1

Value

This function returns a Date variable

Examples

1
2
3
4
5
## Not run: 
eq_date_clean(2015, 3, 30)
eq_date_clean(-2249, 1, 31)

## End(Not run)

shaowei72/RCapstone documentation built on Sept. 19, 2020, 3:37 p.m.