Skip to content

Fail immediately when there are wrong inputs for calcWaterYear #15

@lindsayplatt

Description

@lindsayplatt

Fail helpfully when the wrong inputs are given.

mydatedf <- data.frame("2015-10-20", stringsAsFactors = FALSE)
calcWaterYear(mydatedf)
Error in as.POSIXlt.default(dateVec) : 
  do not know how to convert 'dateVec' to classPOSIXltCalled from: as.POSIXlt.default(dateVec)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions