Skip to content

consolidate argument checks for predictSolute #222

@aappling-usgs

Description

@aappling-usgs

Seems like it ought to be possible to put checks like these:

   # Validate arguments
    flux.or.conc <- match.arg.loadflex(flux.or.conc)
    interval <- match.arg.loadflex(interval)
    attach.units <- match.arg.loadflex(attach.units)
    lin.or.log <- match.arg.loadflex(lin.or.log)
   agg.by <- match.arg(agg.by)

in the generic predictSolute rather than at the top of every predictSolute.xx function. Right? Let's try it. If it doesn't work, make sure agg.by <- match.arg(agg.by) gets into predictSolute.loadLm and predictSolute.loadComp and anywhere else it's currently not.

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