Portfolio Management with R
Overview
Tools for the practical management of financial portfolios: backtesting investment and trading strategies, computing profit/loss and returns, analysing trades, handling lists of transactions, reporting, and more. The package provides a small set of reliable, efficient and convenient tools for processing and analysing trade/portfolio data. The manual provides all the details; it is available from https://enricoschumann.net/R/packages/PMwR/manual/PMwR.html. Examples and descriptions of new features are provided at https://enricoschumann.net/notes/PMwR/.
- 'rc': "geometric" linking methods are no longer documented, and "0-cumulative", "1-cumulative" and "0.5-cumulative" should be used (instead "geometric0", "geometric1" and "geometric0.5"), since these are the terms used in Valtonen (2002). (The old labels still work, though.)
- 'rc': When benchmark returns or weights are specified and 'method' is not explicitly set, 'method' is set to "attribution". To keep the old behaviour, set 'method' to "contribution".
- A short vignette for 'rc' has been added.
- 'position': the 'btest' method gains arguments "unit" and "prices"
Show all changes in 1.3-0Hide the rest of the changes in 1.3-0
- 'pl': the print method has been rewritten and improved
- various minor changes and documentation updates; several fixes of minor bugs. See the ChangeLog for all details. The manual at https://enricoschumann.net/R/packages/PMwR/manual/PMwR.html has also been updated.
From NEWS in the release
Install
Health
- OK13 OK2026-10-20
- WARNING12 OK, 2 WARNING2026-03-10
Documentation
- Help pages
- 25 (1 internal)includes a package overview page
- Examples that run
- 100%22 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 92%
Downloads
Repository
Stars over time
Forks over time
- github.com/enricoschumann/pmwr · last recorded on 2026-10-18
Repository git.sr.ht/~enricoschumann/pmwr is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing PMwR adds 6 packages (2 with compiled code, 3.0 MB of source tarballs). Heaviest: NMOF 1.9 MB, zoo 675 KB, datetimeutils 173 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.3-0Latest
- RR 4.6.0 released · 2026-04-24
- 1.2-02025-12-17 · diff ↗
- 1.1-02025-10-19 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.0-12024-10-20 · diff ↗
- 0.19-52024-07-21 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.19-32023-10-19 · diff ↗
- 0.19-1
- RR 4.3.0 released · 2023-04-21
- 0.18-02022-10-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.17-02021-10-19 · diff ↗
- 0.16-12021-09-18 · diff ↗
- RR 4.1.0 released · 2021-05-18
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2018-10-28
- Total releases
- 17 / 8 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 6.2 KB / 2 files
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PMwR")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.