Skip to content

iha group2 error: only 0's may be mixed with negative subscripts #506

@rburghol

Description

@rburghol

Appears some times when using group2 with water year setting -- maybe has something to do with gage starts and ends? As of 5/19/2025 this example produces the error:

# this produces the error (note: default for year="water")
gfa <- hydrotools::group2(gage_flows_all)
# while this is fine:
gfa <- hydrotools::group2(gage_flows_all, year="calendar")

The issue is thrown in the caTools package, though no ither reports of it could be found in that repo. https://github.com/spluque/caTools/issues
@COBrogan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions