Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • airGRteaching airGRteaching
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Redmine
    • Redmine
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • HYCAR-Hydro
  • airGRteachingairGRteaching
  • Issues
  • #15

Closed
Open
Created Apr 13, 2020 by Delaigue Olivier@olivier.delaigueOwner

Using of match.arg on transfo arg in SimGR and CalGR

Checking transfo argument in SimGR() and in the CalGR() functions using the match.arg() function makes troubles.

It does not work when transfo is set with a signle value equal to "".

## Run (default setting of transfo arg)
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
      EffCrit = "KGE2", transfo = c("", "sqrt", "log", "inv", "sort"),
      WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))

## Run
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
      EffCrit = "KGE2", transfo = c("", "sqrt", "log", "inv", "sort"),
      WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))

## Run
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
      EffCrit = "KGE2", transfo = "sqrt",
      WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))

## Does not run
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
      EffCrit = "KGE2", transfo = "",
      WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))
Assignee
Assign to
Time tracking