{
  "_id": "6a11776cacfb0bcc41cf968b",
  "Package": "PolicyPortfolios",
  "Title": "Tools for Managing, Measuring and Visualizing Policy Portfolios",
  "Description": "Tools for simplifying the creation and management of data\nstructures suitable for dealing with policy portfolios, that\nis, two-dimensional spaces of policy instruments and policy\ntargets. The package also allows to generate measures of\nportfolio characteristics and facilitates their visualization.",
  "Version": "0.4",
  "Authors@R": "person(given = \"Xavier\", family = \"Fernández i Marín\", email = \"xavier.fim@gmail.com\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-9522-8870\"))",
  "License": "GPL-3",
  "URL": "http://xavier-fim.net/packages/PolicyPortfolios/,\nhttps://github.com/xfim/PolicyPortfolios",
  "BugReports": "https://github.com/xfim/PolicyPortfolios/issues",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://xfim.r-universe.dev",
  "Date/Publication": "2023-03-03 11:34:53 UTC",
  "RemoteUrl": "https://github.com/xfim/policyportfolios",
  "RemoteRef": "HEAD",
  "RemoteSha": "81e39a25452fe1dca5b27d05d35f986491124966",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-23 09:42:19 UTC",
    "User": "root"
  },
  "Author": "Xavier Fernández i Marín [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-9522-8870>)",
  "Maintainer": "Xavier Fernández i Marín <xavier.fim@gmail.com>",
  "MD5sum": "1ffab75c31e77c0b716c1cca2fe8f1f2",
  "_user": "xfim",
  "_type": "src",
  "_file": "PolicyPortfolios_0.4.tar.gz",
  "_fileid": "b6004bf6cd5a14a69a719b27bee373bf82934b4972cb8be7cfa1b61a0b2d8318",
  "_filesize": 647618,
  "_sha256": "b6004bf6cd5a14a69a719b27bee373bf82934b4972cb8be7cfa1b61a0b2d8318",
  "_created": "2026-05-23T09:42:19.000Z",
  "_published": "2026-05-23T09:46:20.880Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77513076961,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7176043780"
    },
    {
      "job": 77513076968,
      "time": 205,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7176046568"
    },
    {
      "job": 77513076963,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7176037285"
    },
    {
      "job": 77513076958,
      "time": 96,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7176036513"
    },
    {
      "job": 77512882725,
      "time": 225,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7176027393"
    },
    {
      "job": 77513076976,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7176039691"
    },
    {
      "job": 77513076998,
      "time": 119,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7176038745"
    },
    {
      "job": 77513076993,
      "time": 128,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7176039476"
    },
    {
      "job": 77513076973,
      "time": 115,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7176038219"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/xfim/policyportfolios",
  "_commit": {
    "id": "81e39a25452fe1dca5b27d05d35f986491124966",
    "author": "Xavier Fernández i Marín <xavier.fim@gmail.com>",
    "committer": "Xavier Fernández i Marín <xavier.fim@gmail.com>",
    "message": "Clarify the ways in which similarity can be calculated.\n",
    "time": 1677843293
  },
  "_maintainer": {
    "name": "Xavier Fernández i Marín",
    "email": "xavier.fim@gmail.com",
    "login": "xfim",
    "description": "",
    "uuid": 674675,
    "orcid": "0000-0002-9522-8870"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "vegan",
      "role": "Imports"
    },
    {
      "package": "ineq",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    }
  ],
  "_owner": "xfim",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "xfim",
      "count": 74,
      "uuid": 674675
    }
  ],
  "_userbio": {
    "uuid": 674675,
    "type": "user",
    "name": "Xavier Fernández i Marín"
  },
  "_downloads": {
    "count": 217,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PolicyPortfolios"
  },
  "_devurl": "https://github.com/xfim/policyportfolios",
  "_searchresults": 3,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/PolicyPortfolios.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/xfim/policyportfolios",
  "_realowner": "xfim",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.2",
      "date": "2021-03-01"
    },
    {
      "version": "0.3",
      "date": "2022-03-11"
    },
    {
      "version": "0.5",
      "date": "2025-10-31"
    }
  ],
  "_exports": [
    "diversity_aid",
    "pp_array",
    "pp_clean",
    "pp_complete",
    "pp_measures",
    "pp_plot",
    "pp_report",
    "pp_similarity"
  ],
  "_datasets": [
    {
      "name": "consensus",
      "title": "Policy portfolios for the dataset of the CONSENSUS research project.",
      "object": "consensus",
      "file": "consensus.instruments.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Sector",
        "Country",
        "Year",
        "Instrument",
        "Target",
        "covered"
      ],
      "rows": 509220,
      "table": true,
      "tojson": true
    },
    {
      "name": "consensus.instruments",
      "title": "Meta-data on Instruments for the dataset of the CONSENSUS research project.",
      "object": "consensus.instruments",
      "file": "consensus.instruments.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Instrument",
        "instrument.id",
        "Sector",
        "Type"
      ],
      "rows": 19,
      "table": true,
      "tojson": true
    },
    {
      "name": "consensus.targets",
      "title": "Meta-data on Targets for the dataset of the CONSENSUS research project.",
      "object": "consensus.targets",
      "file": "consensus.targets.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Target",
        "target.id",
        "Sector",
        "Subsector"
      ],
      "rows": 67,
      "table": true,
      "tojson": true
    },
    {
      "name": "P.education",
      "title": "Simulated policy portfolio with fake data for the education sector.",
      "object": "P.education",
      "file": "P.education.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Country",
        "Sector",
        "Year",
        "Instrument",
        "Target",
        "covered"
      ],
      "rows": 4950,
      "table": true,
      "tojson": true
    },
    {
      "name": "P.energy",
      "title": "Simulated policy portfolio with fake data for the energy sector.",
      "object": "P.energy",
      "file": "P.energy.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Country",
        "Sector",
        "Year",
        "Instrument",
        "Target",
        "covered"
      ],
      "rows": 12375,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "burden",
      "title": "Calculate burden based on how different learning assumptions affect portfolio size",
      "topics": [
        "burden"
      ]
    },
    {
      "page": "configurations",
      "title": "Calculate a configuration of instruments",
      "topics": [
        "configurations"
      ]
    },
    {
      "page": "consensus",
      "title": "Policy portfolios for the dataset of the CONSENSUS research project.",
      "topics": [
        "consensus"
      ]
    },
    {
      "page": "consensus.instruments",
      "title": "Meta-data on Instruments for the dataset of the CONSENSUS research project.",
      "topics": [
        "consensus.instruments"
      ]
    },
    {
      "page": "consensus.targets",
      "title": "Meta-data on Targets for the dataset of the CONSENSUS research project.",
      "topics": [
        "consensus.targets"
      ]
    },
    {
      "page": "diversity_aid",
      "title": "Calculate portfolio diversity (Average Instrument Diversity)",
      "topics": [
        "diversity_aid"
      ]
    },
    {
      "page": "P.education",
      "title": "Simulated policy portfolio with fake data for the education sector.",
      "topics": [
        "P.education"
      ]
    },
    {
      "page": "P.energy",
      "title": "Simulated policy portfolio with fake data for the energy sector.",
      "topics": [
        "P.energy"
      ]
    },
    {
      "page": "pass.id",
      "title": "Subset a full dataset with only certain cases (Country / Year)",
      "topics": [
        "pass.id"
      ]
    },
    {
      "page": "PolicyPortfolios",
      "title": "Tools for managing, measuring and visualizing policy portfolios",
      "topics": [
        "PolicyPortfolios",
        "policyportfolios"
      ]
    },
    {
      "page": "pp_array",
      "title": "Convert a tidy dataset into a matrix of policy portfolios",
      "topics": [
        "pp_array"
      ]
    },
    {
      "page": "pp_clean",
      "title": "Tidy a dataset with a \"long\" policy portfolio structure",
      "topics": [
        "pp_clean"
      ]
    },
    {
      "page": "pp_complete",
      "title": "Complete a policy portfolio",
      "topics": [
        "pp_complete"
      ]
    },
    {
      "page": "pp_measures",
      "title": "Measures of interest of a policy portfolio",
      "topics": [
        "pp_measures"
      ]
    },
    {
      "page": "pp_plot",
      "title": "Plot a policy portfolio",
      "topics": [
        "pp_plot"
      ]
    },
    {
      "page": "pp_report",
      "title": "Produce a report of policy portfolios",
      "topics": [
        "pp_report"
      ]
    },
    {
      "page": "pp_similarity",
      "title": "Calculate the similarity between different portfolios",
      "topics": [
        "pp_similarity"
      ]
    }
  ],
  "_readme": "https://github.com/xfim/policyportfolios/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cluster",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "ineq",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "mgcv",
    "nlme",
    "permute",
    "pillar",
    "pkgconfig",
    "plyr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "vegan",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "using_PolicyPortfolios.Rmd",
      "filename": "using_PolicyPortfolios.html",
      "title": "Using the PolicyPortfolios package",
      "author": "Xavier Fernández-i-Marín",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why PolicyPortfolios?",
        "Input Data",
        "Structure and characteristics",
        "Prepare a dataset with a portfolio structure",
        "Analyze policy portfolios",
        "Summarize portfolios",
        "Visual display of portfolios",
        "Other possibilities",
        "Final remarks",
        "Development",
        "References"
      ],
      "created": "2019-03-11 14:43:36",
      "modified": "2022-11-11 22:07:18",
      "commits": 4
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "policyportfolios",
  "_universes": [
    "xfim"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4",
      "date": "2026-05-23T09:44:47.000Z",
      "distro": "noble",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "108deee7be1716b5f167f59c5b733b1fcb5731131d5116230b65a54f46f491de",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4",
      "date": "2026-05-23T09:45:20.000Z",
      "distro": "noble",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "a384f57c15eba2809792532de0e6aa6d6a91438e8e7f82f36809f744efdf6ae8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4",
      "date": "2026-05-23T09:43:55.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "b00122042cc6f350f0f4ef915e969a3183c31cbb166c99e4bec39a7ffbd2bf31",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4",
      "date": "2026-05-23T09:43:49.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "9b2cda053dc2461f2c5065d2bec9e7346c41b95ec1f61139bddef233f3aa849a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4",
      "date": "2026-05-23T09:44:50.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "5af44eec0d2f6df412d59cbed1c2d2427d3f4431ce3476be769a3e37fbdf0db3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4",
      "date": "2026-05-23T09:43:51.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "7a43c5e5182c46336bbfbb5c29cbf7dfeadb77f20685185b751b1d6779e9a197",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4",
      "date": "2026-05-23T09:43:57.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "3fe1b7b983a5ab775c5137e7ba85300c026718d794c848b1c49fa54716476f85",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4",
      "date": "2026-05-23T09:43:43.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "8e2bfd7fb96c669cccfe5c6b09e55b94658c1f89950e6781eac01c4f557648c3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/26329450957"
    }
  ]
}