Skip to content

Fail immediately when there are wrong inputs for calcWaterYear #15

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions