Skip to content

vtreat

1.6.5Package record

A Statistically Sound 'data.frame' Processor/Conditioner

1packages dependsuggested by 1
46.8Kdownloads / year
80.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.6.5
  • try to lower dependencies to avoid lme4 2024-06-17 removal threat

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.6.5
READMEYes · 2,626 wordsVignettesYes · 13 · dynamicNEWSYes · 100% structured · mentions 1.6.5Citation fileNoWebsiteYes · pkgdown
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%

Downloads

46.8K
CRAN downloads in the past year
Rank #2,301 · ~128/day · ~3.9K/mo
Daily download trend is not available in this view yet.
2.4K30 days
7.3K90 days
46.8K1 year
Compare downloads with other packages →
Also on95 r2u10 autocran

Repository

284Stars
45Forks
0Open issues
0Open PRs
38Releases
1,081Commits
6Commit identities
rcategorical-variablesprepare-datamachine-learning-algorithmsnested-models
1,081 commits · Last activity 2025-01-09 · -0.4% stars, 30d
Responsiveness
How these are sampled
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

2025-10-11 · 2842026-10-03 · 284
PracticesBeta

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.

Governance and community (1)
Contributing guide
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2022-01-27

CRAN release process (1)
cran-comments.md
Research and citation (1)
JOSS paper
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing vtreat adds 2 packages (1 with compiled code, 783 KB of source tarballs). Heaviest: wrapr 552 KB, digest 231 KB.

Depends (2)
R >= 3.4.0wrapr
Imports (2)
statsdigest
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer since 0.5.14 (2015)
Copyright holder · added in 0.6.0
Releases (50)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.6.5Latest
    record
    2024-06-12 · current release · diff ↗ ·
    removed 5 exports
    ppCoderC, ppCoderN, solveIsotone, solveNonDecreasing, solveNonIncreasing
  • R
    R 4.4.0 released · 2024-04-24
  • 1.6.4
    record
    2023-08-19 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.6.3
    record
    2021-06-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.6.2
    record
    2020-10-17 · diff ↗ ·
    removed 1 export
    run_vtreat_tests
  • 1.6.1
    record
    2020-08-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.6.0
    record
    2020-03-11 · diff ↗ ·
    added 7 exports
    apply_transform, fit, fit_prepare, fit_transform, get_feature_names, get_score_frame, get_transform
  • 1.5.2
    record
    2020-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.1
    record
    2020-01-16 · diff ↗
  • 1.5.0
    record
    2020-01-08 · diff ↗
Show 46 earlier eventsHide 46 earlier events
  • 1.4.8
    record
    2019-12-08 · diff ↗ ·
    added 9 exports
    .wmean, BinomialOutcomeTreatment, MultinomialOutcomeTreatment, NumericOutcomeTreatment, UnsupervisedTreatment, classification_parameters, multinomial_parameters, regression_parameters, unsupervised_parameters
  • 1.4.7
    record
    2019-10-01 · diff ↗
  • 1.4.6
    record
    2019-09-23 · diff ↗
  • 1.4.5
    record
    2019-09-11 · diff ↗
  • 1.4.4
    record
    2019-07-27 · diff ↗
  • 1.4.3
    record
    2019-07-18 · diff ↗
  • 1.4.2
    record
    2019-07-01 · diff ↗
  • 1.4.0
    record
    2019-05-05 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.3.8
    record
    2019-03-31 · diff ↗
  • 1.3.7
    record
    2019-02-21 · diff ↗
  • 1.3.6
    record
    2019-02-09 · diff ↗ ·
    removed 1 export
    patch_in_frame
    added 2 exports
    patch_columns_into_frame, run_vtreat_tests
  • 1.3.5
    record
    2019-01-27 · diff ↗ ·
    added 4 exports
    patch_in_frame, solve_piecewisec, spline_variablec, square_windowc
  • 1.3.4
    record
    2019-01-02 · diff ↗ ·
    added 1 export
    spline_variable
  • 1.3.3
    record
    2018-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.2
    record
    2018-11-05 · diff ↗
  • 1.3.1
    record
    2018-09-10 · diff ↗
  • 1.3.0
    record
    2018-07-20 · diff ↗ ·
    added 2 exports
    design_missingness_treatment, mkCrossFrameMExperiment
  • 1.2.3
    record
    2018-07-11 · diff ↗
  • 1.2.2
    record
    2018-07-04 · diff ↗
  • 1.2.1
    record
    2018-06-27 · diff ↗ ·
    added 2 exports
    rqdatatable_prepare, rquery_prepare
  • 1.2.0
    record
    2018-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.4
    record
    2018-05-05 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.3
    record
    2018-03-11 · diff ↗ ·
    added 3 exports
    kWayStratifiedYReplace, novel_value_summary, track_values
  • 1.0.2
    record
    2018-01-20 · diff ↗
  • 1.0.1
    record
    2017-10-17 · diff ↗
  • 1.0.0
    record
    2017-10-04 · diff ↗
  • 0.6.0
    record
    2017-09-20 · diff ↗
  • 0.5.32
    record
    2017-06-14 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.5.31
    record
    2017-04-14 · diff ↗
  • 0.5.30
    record
    2017-01-21 · diff ↗
  • 0.5.28
    record
    2016-10-25 · diff ↗ ·
    removed 1 export
    makekWayCrossValidationOrderedByColumn
  • 0.5.27
    record
    2016-08-17 · diff ↗
  • 0.5.26
    record
    2016-07-12 · diff ↗ ·
    added 7 exports
    getSplitPlanAppLabels, kWayCrossValidation, kWayStratifiedY, makekWayCrossValidationGroupedByColumn, makekWayCrossValidationOrderedByColumn, oneWayHoldout, problemAppPlan
  • 0.5.25
    record
    2016-05-03 · diff ↗ ·
    removed 1 export
    hold1OutMeans
  • R
    R 3.3.0 released · 2016-05-03
  • 0.5.23
    record
    2016-04-29 · diff ↗ ·
    added 1 export
    buildEvalSets
  • 0.5.22
    record
    2016-01-08 · diff ↗ ·
    added 2 exports
    mkCrossFrameCExperiment, mkCrossFrameNExperiment
  • 0.5.21
    record
    2015-11-11 · diff ↗
  • 0.5.20
    record
    2015-11-05 · diff ↗ ·
    added 1 export
    designTreatmentsZ
  • 0.5.18
    record
    2015-10-07 · diff ↗
  • 0.5.16
    record
    2015-09-13 · diff ↗
  • 0.5.14
    record
    2015-09-06
  • R
    R 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")
Mount, J., Win-Vector LLC, , & Zumel, N. (2024). vtreat: A Statistically Sound 'data.frame' Processor/Conditioner (Version 1.6.5) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for vtreat version 1.6.5 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy