{
  "_id": "6aafaeea3d719c1f84080b36",
  "Package": "PMwR",
  "Type": "Package",
  "Title": "Portfolio Management with R",
  "Version": "1.3-0",
  "Date": "2026-08-20",
  "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-08-21 20:47:08 UTC",
  "RemoteUrl": "https://gitlab.com/enricoschumann/pmwr",
  "RemoteRef": "HEAD",
  "RemoteSha": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-20 09:58:24 UTC",
    "User": "root"
  },
  "Author": "Enrico Schumann [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7601-6576>)",
  "_user": "enricoschumann",
  "_type": "src",
  "_file": "PMwR_1.3-0.tar.gz",
  "_fileid": "https://r2.ropensci.org/4b2346f00264a7c01615e06c904df6acd16f6efb3814c7de509e4b0731b87df3",
  "_filesize": 1348453,
  "_sha256": "4b2346f00264a7c01615e06c904df6acd16f6efb3814c7de509e4b0731b87df3",
  "_expires": "2026-12-29T10:01:12.000Z",
  "_created": "2026-09-20T09:58:24.000Z",
  "_published": "2026-09-20T10:01:14.762Z",
  "_jobs": [
    {
      "job": 106059986840,
      "time": 123,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "10603032453"
    },
    {
      "job": 106059986841,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10602464230"
    },
    {
      "job": 106059986830,
      "time": 102,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "10603306666"
    },
    {
      "job": 106059986825,
      "time": 73,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10603321624"
    },
    {
      "job": 106059624182,
      "time": 201,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10603700580"
    },
    {
      "job": 106059986823,
      "time": 96,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10603002875"
    },
    {
      "job": 106059986871,
      "time": 80,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "10603411419"
    },
    {
      "job": 106059986895,
      "time": 84,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "10603496285"
    },
    {
      "job": 106059986836,
      "time": 85,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10602783459"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921",
  "_status": "success",
  "_upstream": "https://gitlab.com/enricoschumann/pmwr",
  "_commit": {
    "id": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
    "author": "Enrico Schumann <es@enricoschumann.net>",
    "committer": "Enrico Schumann <es@enricoschumann.net>",
    "message": "Merge\n",
    "time": 1787345228
  },
  "_maintainer": {
    "name": "Enrico Schumann",
    "email": "es@enricoschumann.net",
    "login": "enricoschumann",
    "description": "",
    "uuid": 16351687,
    "orcid": "0000-0001-7601-6576"
  },
  "_distro": "resolute",
  "_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-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
    },
    {
      "week": "2026-25",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 1
    },
    {
      "week": "2026-34",
      "n": 8
    }
  ],
  "_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",
    "followers": 46
  },
  "_downloads": {
    "count": 320,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PMwR"
  },
  "_devurl": "https://gitlab.com/enricoschumann/pmwr",
  "_searchresults": 31,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/PMwR.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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": "2026-06-24 11:59:27",
      "commits": 14
    },
    {
      "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": "2026-08-18 09:29:25",
      "commits": 30
    },
    {
      "source": "pl_open_positions.Rnw",
      "filename": "pl_open_positions.pdf",
      "title": "Profit/Loss for Open Positions",
      "engine": "utils::Sweave",
      "headings": [
        "How to use vprice",
        "Examples"
      ],
      "created": "2017-11-20 15:50:17",
      "modified": "2025-12-17 13:04:21",
      "commits": 8
    },
    {
      "source": "rc_return_constribution.Rnw",
      "filename": "rc_return_constribution.pdf",
      "title": "Return contribution",
      "engine": "utils::Sweave",
      "headings": [
        "Return contribution"
      ],
      "created": "2026-08-18 09:29:25",
      "modified": "2026-08-18 09:29:25",
      "commits": 1
    },
    {
      "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.21152099724023,
  "_indexed": true,
  "_nocasepkg": "pmwr",
  "_universes": [
    "enricoschumann",
    "gitlab-enricoschumann"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3-0",
      "date": "2026-09-20T10:00:20.000Z",
      "distro": "resolute",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/5d21013fe894c5b5c1360c9ca04d47182f367112f76f4304386a1cc6a1aeafa5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3-0",
      "date": "2026-09-20T10:00:25.000Z",
      "distro": "resolute",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/849c3be14d6136faa8e0486e431718ac82cea3c16ebcc4977f7e9ec3a4a74980",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3-0",
      "date": "2026-09-20T10:00:09.000Z",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/782191e0f2cfd07f66cf6a2b3cb5234b2f36ae8c3a2d2d65a65f8e34718f4222",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3-0",
      "date": "2026-09-20T09:59:42.000Z",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/f40a671a09d327cd775cf0cc4135562a28256756eb10e3f7823469906d73783f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3-0",
      "date": "2026-09-20T10:00:21.000Z",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/283f07fd922169ef7c3499f25a32cb2cf7e296eb3b75153ee179159070b1c260",
      "status": "success",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3-0",
      "date": "2026-09-20T09:59:26.000Z",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/a0bce215d534ae171f77489b21112a59a16d0b2c10aa595b4b0ff05a2d7cb995",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3-0",
      "date": "2026-09-20T09:59:32.000Z",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/44c07549723a1bb9754c51da02f4b4ab842057c535e7d263399b84c6eb45f546",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3-0",
      "date": "2026-09-20T09:59:33.000Z",
      "commit": "6adb0fffd8f888e88f2f6e27fa4fedf1e48424a3",
      "fileid": "https://r2.ropensci.org/fd92675384ddfd15bb98f0532f0a052f243791c265a625aa3a7e7458571a8f7d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/35503610921"
    }
  ]
}