unite_YMD: create single column data.frame with dates based on YMD data

Description Usage Arguments Value Note Examples

View source: R/unite_YMD.R

Description

this function creates a data.frame with a single column containing dates based on a data.frame containing three columns "YEAR", "MONTH", "DAY".

Usage

1
unite_YMD(YMD_frame)

Arguments

YMD_frame

a data.frame with three columns: "YEAR" the year of the event "MONTH" the month of the year of the event or NA "DAY" the day of the month of the event or NA

Value

data.frame with single column containing DATE info in date format

Note

this function is for internal use

if Month or Day are NA they will be set to 1

Examples

1
2
3
4
5
## Not run: 
    datesFrame <- naoo_data %>% dplyr::select(YEAR, MONTH, DAY)
    datesFrame <- unite_YMD(datesFrame)

## End(Not run)

RMHoek/NOAAearthquakeAnalysis documentation built on May 14, 2019, 8:58 a.m.