{
  "_id": "6a12b4fbacfb0bcc41d1aa1d",
  "Package": "PMwR",
  "Type": "Package",
  "Title": "Portfolio Management with R",
  "Version": "1.2-0",
  "Date": "2025-12-17",
  "Maintainer": "Enrico Schumann <es@enricoschumann.net>",
  "Authors@R": "person(given = \"Enrico\", family = \"Schumann\",\nrole  = c(\"aut\", \"cre\"),\nemail = \"es@enricoschumann.net\",\ncomment = c(ORCID = \"0000-0001-7601-6576\"))",
  "Description": "Tools for the practical management of financial\nportfolios: backtesting investment and trading strategies,\ncomputing profit/loss and returns, analysing trades, handling\nlists of transactions, reporting, and more.  The package\nprovides a small set of reliable, efficient and convenient\ntools for processing and analysing trade/portfolio data.  The\nmanual provides all the details; it is available from\n<https://enricoschumann.net/R/packages/PMwR/manual/PMwR.html>.\nExamples and descriptions of new features are provided at\n<https://enricoschumann.net/notes/PMwR/>.",
  "License": "GPL-3",
  "LazyLoad": "yes",
  "LazyData": "yes",
  "ByteCompile": "yes",
  "URL": "https://enricoschumann.net/PMwR/ ,\nhttps://git.sr.ht/~enricoschumann/PMwR ,\nhttps://gitlab.com/enricoschumann/PMwR ,\nhttps://github.com/enricoschumann/PMwR",
  "Repository": "https://enricoschumann.r-universe.dev",
  "Date/Publication": "2026-03-17 10:30:16 UTC",
  "RemoteUrl": "https://gitlab.com/enricoschumann/pmwr",
  "RemoteRef": "HEAD",
  "RemoteSha": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-24 08:18:41 UTC",
    "User": "root"
  },
  "Author": "Enrico Schumann [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7601-6576>)",
  "MD5sum": "57a6d549f59d26b2c2900272a8209ecc",
  "_user": "enricoschumann",
  "_type": "src",
  "_file": "PMwR_1.2-0.tar.gz",
  "_fileid": "59cb49145be0575673d88874742863a215b8226df37ac34fd5910f69511bbe68",
  "_filesize": 1230442,
  "_sha256": "59cb49145be0575673d88874742863a215b8226df37ac34fd5910f69511bbe68",
  "_created": "2026-05-24T08:18:41.000Z",
  "_published": "2026-05-24T08:21:15.262Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77583182264,
      "time": 120,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183603596"
    },
    {
      "job": 77583182271,
      "time": 105,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183601922"
    },
    {
      "job": 77583182262,
      "time": 82,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183599109"
    },
    {
      "job": 77583182269,
      "time": 111,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183602507"
    },
    {
      "job": 77582986766,
      "time": 218,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183590105"
    },
    {
      "job": 77583182265,
      "time": 85,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183599671"
    },
    {
      "job": 77583182295,
      "time": 89,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183600375"
    },
    {
      "job": 77583182307,
      "time": 83,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183599314"
    },
    {
      "job": 77583182287,
      "time": 83,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183599311"
    }
  ],
  "_buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://gitlab.com/enricoschumann/pmwr",
  "_commit": {
    "id": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
    "author": "Enrico Schumann <es@enricoschumann.net>",
    "committer": "Enrico Schumann <es@enricoschumann.net>",
    "message": "Add tests\n\nCheck whether total wealth can be reconstructed from\npositions + cash.\n",
    "time": 1773743416
  },
  "_maintainer": {
    "name": "Enrico Schumann",
    "email": "es@enricoschumann.net",
    "login": "enricoschumann",
    "description": "",
    "uuid": 16351687,
    "orcid": "0000-0001-7601-6576"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "NMOF",
      "role": "Imports"
    },
    {
      "package": "datetimeutils",
      "role": "Imports"
    },
    {
      "package": "fastmatch",
      "role": "Imports"
    },
    {
      "package": "orgutils",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "textutils",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Suggests"
    },
    {
      "package": "rbenchmark",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    }
  ],
  "_owner": "gitlab-enricoschumann",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-31",
      "n": 1
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2025-39",
      "n": 2
    },
    {
      "week": "2025-41",
      "n": 3
    },
    {
      "week": "2025-42",
      "n": 2
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 2
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2025-51",
      "n": 3
    },
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.1-0_CRAN",
      "date": "2025-10-19"
    },
    {
      "name": "v1.2-0",
      "date": "2025-12-17"
    }
  ],
  "_userbio": {
    "uuid": 16351687,
    "type": "user",
    "name": "Enrico Schumann"
  },
  "_downloads": {
    "count": 334,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PMwR"
  },
  "_devurl": "https://gitlab.com/enricoschumann/pmwr",
  "_searchresults": 32,
  "_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/PMwR.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://gitlab.com/enricoschumann/pmwr",
  "_realowner": "enricoschumann",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.10-1",
      "date": "2018-10-28"
    },
    {
      "version": "0.11-0",
      "date": "2019-04-01"
    },
    {
      "version": "0.11-1",
      "date": "2019-06-03"
    },
    {
      "version": "0.12-0",
      "date": "2019-08-26"
    },
    {
      "version": "0.14-0",
      "date": "2020-03-11"
    },
    {
      "version": "0.15-0",
      "date": "2020-10-19"
    },
    {
      "version": "0.16-0",
      "date": "2021-01-19"
    },
    {
      "version": "0.16-1",
      "date": "2021-09-18"
    },
    {
      "version": "0.17-0",
      "date": "2021-10-19"
    },
    {
      "version": "0.18-0",
      "date": "2022-10-19"
    },
    {
      "version": "0.19-1",
      "date": "2023-06-05"
    },
    {
      "version": "0.19-3",
      "date": "2023-10-19"
    },
    {
      "version": "0.19-5",
      "date": "2024-07-21"
    },
    {
      "version": "1.0-1",
      "date": "2024-10-19"
    },
    {
      "version": "1.1-0",
      "date": "2025-10-19"
    },
    {
      "version": "1.2-0",
      "date": "2025-12-17"
    }
  ],
  "_exports": [
    ".pl",
    ".pl_stats",
    ".returns",
    "as.journal",
    "as.NAVseries",
    "btest",
    "close_on_first",
    "div_adjust",
    "drawdowns",
    "instrument",
    "instrument<-",
    "is_valid_ISIN",
    "is_valid_SEDOL",
    "is.journal",
    "journal",
    "limit",
    "NAVseries",
    "pl",
    "plot_trading_hours",
    "plotTradingHours",
    "position",
    "pricetable",
    "q32",
    "quote32",
    "rc",
    "rebalance",
    "replace_weight",
    "returns",
    "scale_to_unity",
    "scale_trades",
    "scale1",
    "split_adjust",
    "split_trades",
    "streaks",
    "tw_exposure",
    "unit_prices",
    "valuation"
  ],
  "_datasets": [
    {
      "name": "DAX",
      "title": "Deutscher Aktienindex (DAX)",
      "object": "DAX",
      "class": [
        "data.frame"
      ],
      "fields": [
        "DAX"
      ],
      "rows": 505,
      "table": true,
      "tojson": true
    },
    {
      "name": "REXP",
      "title": "REXP",
      "object": "REXP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "REXP"
      ],
      "rows": 502,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "PMwR-package",
      "title": "Tools for the Management of Financial Portfolios",
      "topics": [
        "PMwR-package",
        "PMwR"
      ]
    },
    {
      "page": "adjust-series",
      "title": "Adjust Time Series for Dividends and Splits",
      "topics": [
        "div_adjust",
        "split_adjust"
      ]
    },
    {
      "page": "btest",
      "title": "Backtesting Investment Strategies",
      "concept": [
        "Backtesting"
      ],
      "topics": [
        "btest"
      ]
    },
    {
      "page": "DAX",
      "title": "Deutscher Aktienindex (DAX)",
      "topics": [
        "DAX"
      ]
    },
    {
      "page": "drawdowns",
      "title": "Compute Drawdowns",
      "topics": [
        "drawdowns",
        "drawdowns.default",
        "drawdowns.zoo"
      ]
    },
    {
      "page": "instrument",
      "title": "Retrieve or Change Instrument",
      "topics": [
        "instrument",
        "instrument<-"
      ]
    },
    {
      "page": "is_valid_ISIN",
      "title": "Validate Security Identification Numbers",
      "topics": [
        "is_valid_ISIN",
        "is_valid_SEDOL"
      ]
    },
    {
      "page": "journal",
      "title": "Journal",
      "topics": [
        "aggregate.journal",
        "all.equal.journal",
        "as.data.frame.journal",
        "as.journal",
        "as.journal.journal",
        "c.journal",
        "head.journal",
        "is.journal",
        "journal",
        "journal.default",
        "length.journal",
        "print.journal",
        "sort.journal",
        "split.journal",
        "subset.journal",
        "summary.journal",
        "tail.journal",
        "[.journal",
        "[<-.journal"
      ]
    },
    {
      "page": "NAVseries",
      "title": "Net-Asset-Value (NAV) Series",
      "topics": [
        "as.data.frame.summary.NAVseries",
        "as.NAVseries",
        "NAVseries",
        "plot.NAVseries",
        "print.NAVseries",
        "summary.NAVseries",
        "window.NAVseries"
      ]
    },
    {
      "page": "pl",
      "title": "Profit and Loss",
      "topics": [
        ".pl",
        ".pl_stats",
        "as.data.frame.pl",
        "pl",
        "pl.data.frame",
        "pl.default",
        "pl.journal",
        "pl.pl",
        "print.pl"
      ]
    },
    {
      "page": "plot_trading_hours",
      "title": "Plot Time Series During Trading Hours",
      "topics": [
        "plotTradingHours",
        "plot_trading_hours"
      ]
    },
    {
      "page": "position",
      "title": "Aggregate Transactions to Positions",
      "topics": [
        "as.matrix.position",
        "position",
        "position.btest",
        "position.default",
        "position.journal",
        "print.position"
      ]
    },
    {
      "page": "pricetable",
      "title": "Price Table",
      "topics": [
        "pricetable",
        "[.pricetable"
      ]
    },
    {
      "page": "quote32",
      "title": "Treasury Quotes with 1/32nds of Point",
      "topics": [
        "q32",
        "quote32"
      ]
    },
    {
      "page": "rc",
      "title": "Return Contribution",
      "topics": [
        "rc"
      ]
    },
    {
      "page": "rebalance",
      "title": "Rebalance Portfolio",
      "topics": [
        "print.rebalance",
        "rebalance",
        "replace_weight"
      ]
    },
    {
      "page": "returns",
      "title": "Compute Returns",
      "topics": [
        ".returns",
        "print.p_returns",
        "p_returns",
        "returns",
        "returns.default",
        "returns.zoo",
        "toHTML.p_returns",
        "toLatex.p_returns"
      ]
    },
    {
      "page": "REXP",
      "title": "REXP",
      "topics": [
        "REXP"
      ]
    },
    {
      "page": "scale1",
      "title": "Scale Time Series",
      "topics": [
        "scale1",
        "scale1.default",
        "scale1.zoo"
      ]
    },
    {
      "page": "streaks",
      "title": "Up and Down Streaks",
      "topics": [
        "streaks",
        "streaks.default",
        "streaks.NAVseries",
        "streaks.zoo"
      ]
    },
    {
      "page": "toHTML",
      "title": "Import from package 'textutils'",
      "topics": [
        "toHTML"
      ]
    },
    {
      "page": "trade-analysis",
      "title": "Analysing Trades: Compute Profit/Loss, Resize and more",
      "topics": [
        "close_on_first",
        "limit",
        "scale_to_unity",
        "scale_trades",
        "split_trades",
        "tw_exposure"
      ]
    },
    {
      "page": "unit_prices",
      "title": "Compute Prices for Portfolio Based on Units",
      "topics": [
        "unit_prices"
      ]
    },
    {
      "page": "valuation",
      "title": "Valuation",
      "topics": [
        "valuation",
        "valuation.journal",
        "valuation.position"
      ]
    }
  ],
  "_readme": "https://gitlab.com/enricoschumann/pmwr/raw/HEAD/README.md",
  "_rundeps": [
    "datetimeutils",
    "fastmatch",
    "lattice",
    "NMOF",
    "orgutils",
    "textutils",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "Computing_returns.Rnw",
      "filename": "Computing_returns.pdf",
      "title": "Computing Returns",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 15:50:17",
      "modified": "2025-12-17 13:04:21",
      "commits": 7
    },
    {
      "source": "Drawdowns_streaks.Rnw",
      "filename": "Drawdowns_streaks.pdf",
      "title": "Drawdowns and Streaks",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2018-08-31 19:31:46",
      "modified": "2025-12-17 13:04:21",
      "commits": 5
    },
    {
      "source": "FinTeX.Rnw",
      "filename": "FinTeX.pdf",
      "title": "FinTeX",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-08-17 20:19:26",
      "modified": "2025-12-17 13:04:21",
      "commits": 13
    },
    {
      "source": "An_overview_of_PMwR.Rnw",
      "filename": "An_overview_of_PMwR.pdf",
      "title": "Overview of the PMwR package",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2016-02-19 08:13:39",
      "modified": "2025-12-17 13:04:21",
      "commits": 29
    },
    {
      "source": "pl_open_positions.Rnw",
      "filename": "pl_open_positions.pdf",
      "title": "Profit/Loss for Open Positions",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 15:50:17",
      "modified": "2025-12-17 13:04:21",
      "commits": 8
    },
    {
      "source": "q32.Rnw",
      "filename": "q32.pdf",
      "title": "Treasury Quotes with 1/32 Fractions",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-21 14:06:04",
      "modified": "2025-12-17 13:04:21",
      "commits": 7
    }
  ],
  "_score": 6.15836249209525,
  "_indexed": true,
  "_nocasepkg": "pmwr",
  "_universes": [
    "enricoschumann",
    "gitlab-enricoschumann"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2-0",
      "date": "2026-05-24T08:20:36.000Z",
      "distro": "noble",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "89bfc19e013b765fe61d69834a99618a2b26fad842f4f1b3162c40d8c203cbd1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2-0",
      "date": "2026-05-24T08:20:26.000Z",
      "distro": "noble",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "869dd35c93c1cc7c2a1d52204cfc1a2eeb008d23762241aa306de739a2382156",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2-0",
      "date": "2026-05-24T08:20:08.000Z",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "ad911a0c554bbb41fc8a4834ffcd0cb9ebda1a7b29262e0fbc71f47678e4e5e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2-0",
      "date": "2026-05-24T08:20:31.000Z",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "7582c9251269df60e8c55e63783989e73b96600570cfb22633449839c3454fd9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2-0",
      "date": "2026-05-24T08:20:27.000Z",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "cc165f5c733a9d45a027d39b9469fd0e922dfd8d5f0d329d0c85588c83bd8898",
      "status": "success",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2-0",
      "date": "2026-05-24T08:19:59.000Z",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "a7d6f2c96f20e6ce1e2aac7c893b377c5288103df2ecbc12c7832c1abb5531d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2-0",
      "date": "2026-05-24T08:19:51.000Z",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "9153876afe188a1d81c69c1c209e8f24d9000aa77389d9fd60de4209f7e0f85d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2-0",
      "date": "2026-05-24T08:20:03.000Z",
      "commit": "f8d4e81833bd668bc228e8659baed56dabdb10e2",
      "fileid": "593ac2620d0e6bc472b1ee82763ad63dd0355bc57c03d04e1517a6b5e16aafab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/26356095212"
    }
  ]
}