convert_data: convert_data

Description Usage Arguments Value Examples

Description

A date vector is created by uniting the year, month, day and converting it to the Date class

Usage

1
convert_data(Year = 0, Month = 0, Day = 0)

Arguments

Year

An integer vector representing years

Month

An integer vector representing months

Day

An integer vector representing days

Value

A date vector or an error message if the input parameters don't have the same length

Examples

1
2
3
4
5
Year <- c(-11, -100, -200, -300, 2000, 0)
Month <- c(NA, NA, NA, 9, 8, 1)
Day <- c(8, NA, 7, 29, 20, 12)

convert_data(Year, Month, Day)

constantin345/NOOA documentation built on May 16, 2019, 7:09 p.m.