A Statistically Sound 'data.frame' Processor/Conditioner
Overview
A 'data.frame' processor/conditioner that prepares real-world data for predictive modeling in a statistically sound manner. 'vtreat' prepares variables so that data has fewer exceptional cases, making it easier to safely use models in production. Common problems 'vtreat' defends against: 'Inf', 'NA', too many categorical levels, rare categorical levels, and new categorical levels (levels seen during application, but not during training). Reference: "'vtreat': a data.frame Processor for Predictive Modeling", Zumel, Mount, 2016, DOI:10.5281/zenodo.1173313.
- try to lower dependencies to avoid lme4 2024-06-17 removal threat
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 63 (3 internal)includes a package overview page
- Examples that run
- 100%26 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 46%
- Documented parameters
- 99%
- Return-value docs
- 87%
- Help pages citing references
- 0%
- vtreat package HTML
- Multi Class vtreat HTML
- Saving Treatment Plans HTML
- Variable Types HTML
- vtreat cross frames HTML
- vtreat data splitting HTML
- vtreat Formal Article PDF
- vtreat grouping example HTML
- vtreat overfit HTML
- vtreat Rare Levels HTML
Show 3 moreHide 3 vignettes
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/winvector/vtreat on 2026-10-11.
Show all practicesHide 1 practice
Dependencies
Installing vtreat adds 2 packages (1 with compiled code, 783 KB of source tarballs). Heaviest: wrapr 552 KB, digest 231 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.6.5Latest2024-06-12 · current release · diff ↗ ·
removed 5 exports
ppCoderC, ppCoderN, solveIsotone, solveNonDecreasing, solveNonIncreasing - RR 4.4.0 released · 2024-04-24
- 1.6.42023-08-19 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.6.32021-06-11 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.6.2
- 1.6.12020-08-12 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.6.02020-03-11 · diff ↗ ·
added 7 exports
apply_transform, fit, fit_prepare, fit_transform, get_feature_names, get_score_frame, get_transform - 1.5.22020-02-08 · diff ↗ ·
removed 13 exports
%.>%, %:=%, apply_left, apply_right, build_frame, draw_frame, let, map_to_char, mk_tmp_name_source, qae, qc, qchar_frame, qe - 1.5.12020-01-16 · diff ↗
- 1.5.02020-01-08 · diff ↗
Show 46 earlier eventsHide 46 earlier events
- 1.4.82019-12-08 · diff ↗ ·
added 9 exports
.wmean, BinomialOutcomeTreatment, MultinomialOutcomeTreatment, NumericOutcomeTreatment, UnsupervisedTreatment, classification_parameters, multinomial_parameters, regression_parameters, unsupervised_parameters - 1.4.72019-10-01 · diff ↗
- 1.4.62019-09-23 · diff ↗
- 1.4.52019-09-11 · diff ↗
- 1.4.42019-07-27 · diff ↗
- 1.4.32019-07-18 · diff ↗
- 1.4.22019-07-01 · diff ↗
- 1.4.02019-05-05 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.3.82019-03-31 · diff ↗
- 1.3.72019-02-21 · diff ↗
- 1.3.62019-02-09 · diff ↗ ·
removed 1 export
patch_in_frameadded 2 exports
patch_columns_into_frame, run_vtreat_tests - 1.3.52019-01-27 · diff ↗ ·
added 4 exports
patch_in_frame, solve_piecewisec, spline_variablec, square_windowc - 1.3.4
- 1.3.32018-12-17 · diff ↗ ·
added 12 exports
center_scale, ppCoderC, ppCoderN, pre_comp_xval, solveIsotone, solveNonDecreasing, solveNonIncreasing, solve_piecewise, square_window, value_variables_C, value_variables_N, variable_values - 1.3.22018-11-05 · diff ↗
- 1.3.12018-09-10 · diff ↗
- 1.3.0
- 1.2.32018-07-11 · diff ↗
- 1.2.22018-07-04 · diff ↗
- 1.2.1
- 1.2.02018-06-19 · diff ↗ ·
added 16 exports
%.>%, %:=%, apply_left, apply_right, as_rquery_plan, build_frame, draw_frame, flatten_fn_list, let, map_to_char, materialize_treated, mk_tmp_name_source, qae, qc, qchar_frame, qe - 1.0.42018-05-05 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.0.3
- 1.0.22018-01-20 · diff ↗
- 1.0.12017-10-17 · diff ↗
- 1.0.02017-10-04 · diff ↗
- 0.6.02017-09-20 · diff ↗
- 0.5.322017-06-14 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.5.312017-04-14 · diff ↗
- 0.5.302017-01-21 · diff ↗
- 0.5.28
- 0.5.272016-08-17 · diff ↗
- 0.5.262016-07-12 · diff ↗ ·
added 7 exports
getSplitPlanAppLabels, kWayCrossValidation, kWayStratifiedY, makekWayCrossValidationGroupedByColumn, makekWayCrossValidationOrderedByColumn, oneWayHoldout, problemAppPlan - 0.5.25
- RR 3.3.0 released · 2016-05-03
- 0.5.23
- 0.5.22
- 0.5.212015-11-11 · diff ↗
- 0.5.20
- 0.5.182015-10-07 · diff ↗
- 0.5.162015-09-13 · diff ↗
- 0.5.142015-09-06
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-09-06
- Total releases
- 50 / 11 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 1.6 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("vtreat")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.