{
  "_id": "6ac8c264de46216d5edd69f8",
  "Package": "mbr",
  "Type": "Package",
  "Title": "Mass Balance Reconstruction",
  "Version": "0.0.1.1",
  "Author": "Hung Nguyen",
  "Maintainer": "Hung Nguyen <ntthung@gmail.com>",
  "Description": "Mass-balance-adjusted Regression algorithm for streamflow\nreconstruction at sub-annual resolution (e.g., seasonal or\nmonthly). The algorithm implements a penalty term to minimize\nthe differences between the total sub-annual flows and the\nannual flow. The method is described in Nguyen et al (2020)\n<DOI:10.1002/essoar.10504791.1>.",
  "License": "GPL (>= 2.0)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.1.1",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://github.com/ntthung/mbr",
  "BugReports": "https://github.com/ntthung/mbr/issues",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libicu-dev libpng-dev libxml2-dev",
  "Repository": "https://critical-infrastructure-systems-lab.r-universe.dev",
  "Date/Publication": "2021-03-10 07:08:39 UTC",
  "RemoteUrl": "https://github.com/critical-infrastructure-systems-lab/mbr",
  "RemoteRef": "HEAD",
  "RemoteSha": "e5850b4229c6c0329de9229d78cb30ec2928a253",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-09 09:50:09 UTC",
    "User": "root"
  },
  "_user": "critical-infrastructure-systems-lab",
  "_type": "src",
  "_file": "mbr_0.0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/9dede52ebf47433467a1d5beee64e600e92d026a4a5f13f2bcc069274a91264b",
  "_filesize": 158627,
  "_sha256": "9dede52ebf47433467a1d5beee64e600e92d026a4a5f13f2bcc069274a91264b",
  "_expires": "2027-01-17T10:30:59.000Z",
  "_created": "2026-10-09T09:50:09.000Z",
  "_published": "2026-10-09T10:31:00.723Z",
  "_buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113765174129,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11607618412"
    },
    {
      "job": 113765174249,
      "time": 152,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11608330771"
    },
    {
      "job": 113765174152,
      "time": 100,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11610681922"
    },
    {
      "job": 113765174327,
      "time": 135,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11611051709"
    },
    {
      "job": 113764089522,
      "time": 184,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11607876354"
    },
    {
      "job": 113765174101,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11607817282"
    },
    {
      "job": 113765174427,
      "time": 110,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11607543969"
    },
    {
      "job": 113765174173,
      "time": 95,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11607583560"
    },
    {
      "job": 113765174213,
      "time": 116,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11608071252"
    }
  ],
  "_upstream": "https://github.com/critical-infrastructure-systems-lab/mbr",
  "_commit": {
    "id": "e5850b4229c6c0329de9229d78cb30ec2928a253",
    "author": "ntthung <ntthung@gmail.com>",
    "committer": "ntthung <ntthung@gmail.com>",
    "message": "Merge branch 'main' of https://github.com/ntthung/mbr into main\n",
    "time": 1615360119
  },
  "_maintainer": {
    "name": "Hung Nguyen",
    "email": "ntthung@gmail.com",
    "login": "ntthung",
    "description": "",
    "uuid": 22501446
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "dplR",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "Rfast",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "critical-infrastructure-systems-lab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "ntthung",
      "count": 45,
      "uuid": 22501446
    }
  ],
  "_userbio": {
    "uuid": 133989297,
    "type": "organization",
    "name": "CRITICAL Infrastructure Systems Lab",
    "followers": 49,
    "description": " Connecting climate, water, and energy"
  },
  "_downloads": {
    "count": 282,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mbr"
  },
  "_devurl": "https://github.com/ntthung/mbr",
  "_searchresults": 12,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mbr.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/critical-infrastructure-systems-lab/mbr",
  "_realowner": "critical-infrastructure-systems-lab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2021-02-16"
    }
  ],
  "_exports": [
    "calculate_metrics",
    "cv_mb",
    "KGE",
    "make_Z",
    "mb_reconstruction",
    "nRMSE",
    "NSE",
    "RE"
  ],
  "_datasets": [
    {
      "name": "p1Seasonal",
      "title": "Seasonal streamflow at P.1 station",
      "object": "p1Seasonal",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "season",
        "year",
        "Qa"
      ],
      "rows": 246,
      "table": true,
      "tojson": true
    },
    {
      "name": "pc3seasons",
      "title": "Principal components of tree rings",
      "object": "pc3seasons",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "back_trans",
      "title": "Back-transformation",
      "topics": [
        "back_trans"
      ]
    },
    {
      "page": "calculate_metrics",
      "title": "Reconstruction metrics",
      "topics": [
        "calculate_metrics"
      ]
    },
    {
      "page": "colScale",
      "title": "Scale columns of a matrix",
      "topics": [
        "colScale"
      ]
    },
    {
      "page": "colUnscale",
      "title": "Unscale columns of a matrix",
      "topics": [
        "colUnscale"
      ]
    },
    {
      "page": "cv_mb",
      "title": "Cross-validation",
      "topics": [
        "cv_mb"
      ]
    },
    {
      "page": "KGE",
      "title": "Kling-Gupta Efficiency",
      "topics": [
        "KGE"
      ]
    },
    {
      "page": "lsq_mb",
      "title": "Least square with mass balance penalty",
      "topics": [
        "lsq_mb"
      ]
    },
    {
      "page": "make_Z",
      "title": "Make cross-validation folds.",
      "topics": [
        "make_Z"
      ]
    },
    {
      "page": "mb_fit",
      "title": "Fit parameters with mass balance criterion",
      "topics": [
        "mb_fit"
      ]
    },
    {
      "page": "mb_reconstruction",
      "title": "Mass-balance-adjusted reconstruction",
      "topics": [
        "mb_reconstruction"
      ]
    },
    {
      "page": "nRMSE",
      "title": "Normalized root-mean-square error",
      "topics": [
        "nRMSE"
      ]
    },
    {
      "page": "NSE",
      "title": "Nash-Sutcliffe Efficiency",
      "topics": [
        "NSE"
      ]
    },
    {
      "page": "obj_fun",
      "title": "Objective function from parameters",
      "topics": [
        "obj_fun"
      ]
    },
    {
      "page": "p1Seasonal",
      "title": "Seasonal streamflow at P.1 station",
      "topics": [
        "p1Seasonal"
      ]
    },
    {
      "page": "pc3seasons",
      "title": "Principal components of tree rings",
      "topics": [
        "pc3seasons"
      ]
    },
    {
      "page": "prepend_ones",
      "title": "Prepend a column of ones",
      "topics": [
        "prepend_ones"
      ]
    },
    {
      "page": "RE",
      "title": "Reduction of Error",
      "topics": [
        "RE"
      ]
    },
    {
      "page": "rowScale",
      "title": "Scale rows of a Matrix",
      "topics": [
        "rowScale"
      ]
    },
    {
      "page": "rowUnscale",
      "title": "Unscale rows of a matrix",
      "topics": [
        "rowUnscale"
      ]
    }
  ],
  "_readme": "https://github.com/critical-infrastructure-systems-lab/mbr/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "cli",
    "data.table",
    "digest",
    "dplR",
    "glue",
    "lattice",
    "lifecycle",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "minqa",
    "nlme",
    "nloptr",
    "png",
    "R.methodsS3",
    "R.oo",
    "R.utils",
    "rbibutils",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "reformulas",
    "Rfast",
    "rlang",
    "signal",
    "stringi",
    "stringr",
    "vctrs",
    "XML",
    "zigg"
  ],
  "_vignettes": [
    {
      "source": "Mass-balance-adjusted-regression.Rmd",
      "filename": "Mass-balance-adjusted-regression.html",
      "title": "Streamflow reconstruction with mass balance adjustment",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Reconstruction",
        "Cross-validation",
        "References"
      ],
      "created": "2021-02-10 06:17:09",
      "modified": "2021-02-10 06:17:09",
      "commits": 1
    }
  ],
  "_score": 3.778151250383644,
  "_indexed": true,
  "_nocasepkg": "mbr",
  "_universes": [
    "critical-infrastructure-systems-lab",
    "ntthung"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.1.1",
      "date": "2026-10-09T09:52:44.000Z",
      "distro": "resolute",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/4e976254590adef55f85841840fc5005d74f98de1f606f5a957a2fc4b8c213e0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.1.1",
      "date": "2026-10-09T09:52:22.000Z",
      "distro": "resolute",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/21548058cb7c750d78cff8531e8304f2452d0aa590918ff33d2bf5af1f30c67b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1.1",
      "date": "2026-10-09T10:29:36.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/34a08a09f28e175498ab4bb35ad267af2933484b72ce05f77bccd7e0938e354f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.1.1",
      "date": "2026-10-09T10:29:59.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/85820cd4b5e0c1c3a6fa8ae87c867599f23641ac4a6e977db25b3179b8c9d3c8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1.1",
      "date": "2026-10-09T09:52:08.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/b0e06bba69e70e7050c64be16c09ad08d961f3a85f46982068ab585558ad77ca",
      "status": "success",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1.1",
      "date": "2026-10-09T09:51:28.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/17c7d58d456b08dbfbc2bc774095be734b5ba2db36922d7273095e962ca323ae",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1.1",
      "date": "2026-10-09T09:51:21.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/4cdb76c3f594fbd125dbcf2e6e673fb1afd487b321a1fdbdb19bab2053fb3269",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.1.1",
      "date": "2026-10-09T09:51:40.000Z",
      "commit": "e5850b4229c6c0329de9229d78cb30ec2928a253",
      "fileid": "https://r2.ropensci.org/c22353636c04cdd4f7c72fe68f2cc85f2188e12904d598935b4350f673dbbc51",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/critical-infrastructure-systems-lab/actions/runs/37913490121"
    }
  ]
}