checkStartEndDate: checkStartEndDate

View source: R/checkStartEndDate.r

checkStartEndDateR Documentation

checkStartEndDate

Description

Checks that the start date is before the end date. If not, it will give the user the opportunity to correct, otherwise will create a warning.

Usage

checkStartEndDate(startDate, endDate, interactive = TRUE)

Arguments

startDate

character

endDate

character

interactive

logical Option for interactive mode. If true, there is user interaction for error handling and data checks.

Value

vector where first value is startDate, second is endDate

Examples

	
startDate <- '1985-01-01'		
endDate <- '1990-01-01'		
checkStartEndDate(startDate, endDate)

USGS-R/EGRET documentation built on Oct. 26, 2024, 7:14 p.m.