{
  "_id": "6a2bcaea57839859431a0691",
  "Package": "metafolio",
  "Type": "Package",
  "Title": "Metapopulation Simulations for Conserving Salmon Through\nPortfolio Optimization",
  "Version": "0.1.2",
  "Authors@R": "c(person(given = c(\"Sean\", \"C.\"),\nfamily = \"Anderson\",\nrole = c(\"aut\", \"cre\"),\nemail = \"sean@seananderson.ca\",\ncomment = c(ORCID = \"0000-0001-9563-1937\")),\nperson(c(\"Jonathan\", \"W.\"), \"Moore\", role = \"ctb\"),\nperson(c(\"Michelle\", \"M.\"), \"McClure\", role = \"ctb\"),\nperson(c(\"Nicholas\", \"K.\"), \"Dulvy\", role = \"ctb\"),\nperson(c(\"Andrew\", \"B.\"), \"Cooper\", role = \"ctb\"))",
  "Description": "A tool to simulate salmon metapopulations and apply\nfinancial portfolio optimization concepts. The package\naccompanies the paper Anderson et al. (2015)\n<doi:10.1101/2022.03.24.485545>.",
  "License": "GPL-2",
  "URL": "https://github.com/seananderson/metafolio",
  "BugReports": "https://github.com/seananderson/metafolio/issues",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.2.3",
  "Encoding": "UTF-8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-12 08:57:59 UTC",
    "User": "root"
  },
  "Author": "Sean C. Anderson [aut, cre]\n(<https://orcid.org/0000-0001-9563-1937>), Jonathan W. Moore\n[ctb], Michelle M. McClure [ctb], Nicholas K. Dulvy [ctb],\nAndrew B. Cooper [ctb]",
  "Maintainer": "Sean C. Anderson <sean@seananderson.ca>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2023-10-20 18:30:26 UTC",
  "RemoteUrl": "https://github.com/cran/metafolio",
  "RemoteRef": "HEAD",
  "RemoteSha": "413324239e5e3860b1475f559dc333cb68464fb2",
  "MD5sum": "33b28fc9591f1d81dc62a2e39c377aaf",
  "_user": "cran",
  "_type": "src",
  "_file": "metafolio_0.1.2.tar.gz",
  "_fileid": "a7d2c99f8a034b8bdb068e4966735f69c7a38a3e816b783e3926342a78e35773",
  "_filesize": 1063176,
  "_sha256": "a7d2c99f8a034b8bdb068e4966735f69c7a38a3e816b783e3926342a78e35773",
  "_created": "2026-06-12T08:57:59.000Z",
  "_published": "2026-06-12T09:01:30.601Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80994152089,
      "time": 120,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7587378080"
    },
    {
      "job": 80994152082,
      "time": 117,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7587377543"
    },
    {
      "job": 80994152076,
      "time": 122,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587378649"
    },
    {
      "job": 80994152098,
      "time": 119,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587378183"
    },
    {
      "job": 80993594683,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587337700"
    },
    {
      "job": 80994152032,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587381796"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27405487822",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/metafolio",
  "_commit": {
    "id": "413324239e5e3860b1475f559dc333cb68464fb2",
    "author": "Sean C. Anderson <sean@seananderson.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.2\n",
    "time": 1697826626
  },
  "_maintainer": {
    "name": "Sean C. Anderson",
    "email": "sean@seananderson.ca",
    "login": "seananderson",
    "description": "",
    "uuid": 19349,
    "orcid": "0000-0001-9563-1937"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.2",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "colorspace",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "TeachingDemos",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "reshape2",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "seananderson",
      "count": 3,
      "uuid": 19349
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 782,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/metafolio"
  },
  "_devurl": "https://github.com/seananderson/metafolio",
  "_searchresults": 97,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/metafolio.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/seananderson/metafolio",
  "_realowner": "seananderson",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2014-07-10"
    },
    {
      "version": "0.1.1",
      "date": "2022-04-12"
    },
    {
      "version": "0.1.2",
      "date": "2023-10-20"
    }
  ],
  "_exports": [
    "count_quasi_exts",
    "create_asset_weights",
    "CVaR",
    "fit_ricker",
    "generate_env_ts",
    "generate_straying_matrix",
    "get_port_vals",
    "gg_color_hue",
    "impl_error",
    "meta_sim",
    "monte_carlo_portfolios",
    "plot_cons_plans",
    "plot_correlation_between_returns",
    "plot_efficient_portfolios",
    "plot_rickers",
    "plot_sim_ts",
    "plot_sp_A_ts",
    "ricker",
    "ricker_escapement",
    "ricker_v_t",
    "run_cons_plans",
    "thermal_curve_a",
    "thermal_integration",
    "VaR"
  ],
  "_help": [
    {
      "page": "add_dens_polygon",
      "title": "Add a kernel density polygon",
      "topics": [
        "add_dens_polygon"
      ]
    },
    {
      "page": "annotate",
      "title": "Add annotations to panel",
      "topics": [
        "annotate"
      ]
    },
    {
      "page": "count_quasi_exts",
      "title": "Take 'meta_sim' output objects and count quasi extinctions",
      "topics": [
        "count_quasi_exts"
      ]
    },
    {
      "page": "create_asset_weights",
      "title": "Create an asset weights matrix",
      "topics": [
        "create_asset_weights"
      ]
    },
    {
      "page": "custom_bw",
      "title": "Custom bandwidth",
      "topics": [
        "custom_bw"
      ]
    },
    {
      "page": "CVaR",
      "title": "Conditional Value at Risk",
      "topics": [
        "CVaR"
      ]
    },
    {
      "page": "est_beta_params",
      "title": "Get beta parameters from mean and variance",
      "topics": [
        "est_beta_params"
      ]
    },
    {
      "page": "fastlm",
      "title": "Super fast linear regression",
      "topics": [
        "fastlm"
      ]
    },
    {
      "page": "fit_ricker",
      "title": "Fit Ricker linear regression",
      "topics": [
        "fit_ricker"
      ]
    },
    {
      "page": "generate_env_ts",
      "title": "Create an environmental time series.",
      "topics": [
        "generate_env_ts"
      ]
    },
    {
      "page": "generate_straying_matrix",
      "title": "Generate a matrix of straying proportions within a metapopulation",
      "topics": [
        "generate_straying_matrix"
      ]
    },
    {
      "page": "get_conserv_plans_mv",
      "title": "Run simulation for conservation schemes",
      "topics": [
        "get_conserv_plans_mv"
      ]
    },
    {
      "page": "get_efficient_frontier",
      "title": "Get the efficient frontier from mean and variance values",
      "topics": [
        "get_efficient_frontier"
      ]
    },
    {
      "page": "get_port_vals",
      "title": "Get portfolio mean and variance values",
      "topics": [
        "get_port_vals"
      ]
    },
    {
      "page": "get_quantile_contour",
      "title": "Get quantile contour",
      "topics": [
        "get_quantile_contour"
      ]
    },
    {
      "page": "gg_color_hue",
      "title": "ggplot2-like colour scale in HCL space",
      "topics": [
        "gg_color_hue"
      ]
    },
    {
      "page": "impl_error",
      "title": "Add implementation error",
      "topics": [
        "impl_error"
      ]
    },
    {
      "page": "is_element",
      "title": "Check if x is an element of y.",
      "topics": [
        "is_element"
      ]
    },
    {
      "page": "meta_sim",
      "title": "Run a single metapopulation simulation.",
      "topics": [
        "meta_sim"
      ]
    },
    {
      "page": "metafolio",
      "title": "metafolio: An R package to simulate metapopulations for portfolio optimization",
      "topics": [
        "metafolio-package",
        "metafolio"
      ]
    },
    {
      "page": "metasim_base",
      "title": "Base-level metapopulation simulation function",
      "topics": [
        "metasim_base"
      ]
    },
    {
      "page": "monte_carlo_portfolios",
      "title": "Monte Carlo asset weights into portfolios",
      "topics": [
        "monte_carlo_portfolios"
      ]
    },
    {
      "page": "my.axis",
      "title": "Add a pretty axis",
      "topics": [
        "my.axis"
      ]
    },
    {
      "page": "optim_thermal",
      "title": "Optimize to find optimal max productivity Ricker a",
      "topics": [
        "optim_thermal"
      ]
    },
    {
      "page": "plot_cons_plans",
      "title": "Plot conservation plans in mean-variance space",
      "topics": [
        "plot_cons_plans"
      ]
    },
    {
      "page": "plot_correlation_between_returns",
      "title": "Plot correlation of returns (i.e. metapopulation abundance) across stocks.",
      "topics": [
        "plot_correlation_between_returns"
      ]
    },
    {
      "page": "plot_efficient_portfolios",
      "title": "Basic plot of efficient portfolio and asset contributions",
      "topics": [
        "plot_efficient_portfolios"
      ]
    },
    {
      "page": "plot_panel_lines",
      "title": "Standard matrix plot of values by stream for one panel:",
      "topics": [
        "plot_panel_lines"
      ]
    },
    {
      "page": "plot_rickers",
      "title": "Plot sample Ricker curves for each stock",
      "topics": [
        "plot_rickers"
      ]
    },
    {
      "page": "plot_sim_ts",
      "title": "Plot various time series from a simulation run",
      "topics": [
        "plot_sim_ts"
      ]
    },
    {
      "page": "plot_sp_A_ts",
      "title": "Plot sample time series from a portfolio simulation",
      "topics": [
        "plot_sp_A_ts"
      ]
    },
    {
      "page": "ricker",
      "title": "A simple Ricker model",
      "topics": [
        "ricker"
      ]
    },
    {
      "page": "ricker_escapement",
      "title": "Assign a salmon escapement target based on a Ricker curve",
      "topics": [
        "ricker_escapement"
      ]
    },
    {
      "page": "ricker_v_t",
      "title": "Ricker stock-recruit function with specified error",
      "topics": [
        "ricker_v_t"
      ]
    },
    {
      "page": "run_cons_plans",
      "title": "Run conservation plans and return the portfolio mean and variance values",
      "topics": [
        "run_cons_plans"
      ]
    },
    {
      "page": "thermal_area",
      "title": "Return desired squared deviation between desired area and actual area under a curve",
      "topics": [
        "thermal_area"
      ]
    },
    {
      "page": "thermal_curve_a",
      "title": "Create thermal tolerance curves.",
      "topics": [
        "thermal_curve_a"
      ]
    },
    {
      "page": "thermal_integration",
      "title": "Integrate thermal tolerance curves to get maximum Ricker a values",
      "topics": [
        "thermal_integration"
      ]
    },
    {
      "page": "VaR",
      "title": "Value at Risk",
      "topics": [
        "VaR"
      ]
    }
  ],
  "_rundeps": [
    "colorspace",
    "MASS",
    "plyr",
    "Rcpp",
    "RcppArmadillo"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "metafolio.Rnw",
      "filename": "metafolio.pdf",
      "title": "An introduction to the metafolio R package",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2014-07-09",
      "modified": "2014-07-09",
      "commits": 1
    }
  ],
  "_score": 2.9867717342662448,
  "_indexed": false,
  "_nocasepkg": "metafolio",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://seananderson.r-universe.dev/metafolio",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-12T08:59:59.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "413324239e5e3860b1475f559dc333cb68464fb2",
      "fileid": "7a1ab409d53f7538f6fced2e906167c53e9feacde9a794bdd6e6d459fea46f5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27405487822"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-12T08:59:59.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "413324239e5e3860b1475f559dc333cb68464fb2",
      "fileid": "a3afb7cac78e6ec0abf7a966ea68782b032182daf9c898cf3dc1f5c4054718c0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27405487822"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-12T09:00:02.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "413324239e5e3860b1475f559dc333cb68464fb2",
      "fileid": "f005cb1c5184f94c956ec070772b0e8df85fc0f0e928e5f632a1d2ea2c09c893",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27405487822"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-12T08:59:59.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "413324239e5e3860b1475f559dc333cb68464fb2",
      "fileid": "b36bc611547b8d3a4be6b45651017e234b658423236f0f853c77370983c44a04",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27405487822"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-12T09:00:19.000Z",
      "arch": "emscripten",
      "commit": "413324239e5e3860b1475f559dc333cb68464fb2",
      "fileid": "44159e3ff23125536c04e72b1adcd64ea0db9beb0ebb660bf349dcae8479753d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27405487822"
    }
  ]
}