{
  "_id": "6a607ee714e95619b75da723",
  "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-07-22 08:23:21 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>",
  "_user": "xfim",
  "_type": "src",
  "_file": "PolicyPortfolios_0.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/16773d47d60dc539a7b821e70a8b9005422421914d83e9658ed56bd0f61a6a65",
  "_filesize": 649648,
  "_sha256": "16773d47d60dc539a7b821e70a8b9005422421914d83e9658ed56bd0f61a6a65",
  "_expires": "2026-10-30T08:27:17.000Z",
  "_created": "2026-07-22T08:23:21.000Z",
  "_published": "2026-07-22T08:27:19.680Z",
  "_jobs": [
    {
      "job": 88870417951,
      "time": 189,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8523052750"
    },
    {
      "job": 88870417952,
      "time": 164,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8523042471"
    },
    {
      "job": 88870418098,
      "time": 133,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8523029603"
    },
    {
      "job": 88870418023,
      "time": 114,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8523021369"
    },
    {
      "job": 88869589003,
      "time": 236,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8522971491"
    },
    {
      "job": 88870417945,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8523029992"
    },
    {
      "job": 88870418077,
      "time": 128,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8523027438"
    },
    {
      "job": 88870418043,
      "time": 129,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8523027843"
    },
    {
      "job": 88870417961,
      "time": 141,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8523033225"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 34
  },
  "_downloads": {
    "count": 176,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PolicyPortfolios"
  },
  "_devurl": "https://github.com/xfim/policyportfolios",
  "_searchresults": 4,
  "_rbuild": "4.6.1",
  "_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-07-22T08:26:07.000Z",
      "distro": "resolute",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/b55211e5ee95debb6a90443980c5832dc25caa98812fbe284a88b539c449a3a8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4",
      "date": "2026-07-22T08:25:52.000Z",
      "distro": "resolute",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/fc14b046c5bb7c1026963076f340c01167dd393285c96f50ce11505bb3f5879c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4",
      "date": "2026-07-22T08:25:14.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/38bc9d7477ece12e60679c2b8a5563c59f684fc3951fca535419d3ea895c8c2d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4",
      "date": "2026-07-22T08:25:04.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/153eac8cba35f7b97bee5a6b0d6a3809598f3b865a0691a54446d65bb3f2b092",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4",
      "date": "2026-07-22T08:26:00.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/d770eeb76681055f24fd457f1a50d79d76bee591751bee9133bea7db30873989",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4",
      "date": "2026-07-22T08:25:00.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/89e2ce961a25f135330bf098ea298dd92e41e4e106d5adb3dc67d0be2c91518d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4",
      "date": "2026-07-22T08:24:58.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/b2b7c24c44e7bb77e3b5f7d79d0688f40a5613db1032a1d53f5c4c530f32d7d6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4",
      "date": "2026-07-22T08:25:12.000Z",
      "commit": "81e39a25452fe1dca5b27d05d35f986491124966",
      "fileid": "https://r2.ropensci.org/f52ec5edee7d756e43c07d67ad1424f58dda2bdd997ae5e9d2c3108e4caa4e51",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/xfim/actions/runs/29903546844"
    }
  ]
}