Skip to content

vtreat

1.6.5

A Statistically Sound 'data.frame' Processor/Conditioner

2packages depend
57.1Kdownloads / year
80.0%test coverage
13/13checks pass

Overview

About
Maintained by John MountFirst published 2015-09-0650 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 4.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.00
80.0%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 2,626 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
99%
Return-value docs
87%
References docs
0%

Downloads

57.1K
CRAN downloads in the past year
Rank #2,068 · ~156/day · ~4.8K/mo
Daily download trend is not available in this view yet.
1.8K30 days
11.7K90 days
57.1K1 year
Compare downloads with other packages →
Also on125 r2u28 autocran

Repository

Repository
286Stars
45Forks
0Open issues
0Open PRs
38Releases
1,081Commits
6Contributors
rcategorical-variablesprepare-datamachine-learning-algorithmsnested-models
1,081 commits · Last activity 2025-01-09 · +0.4% stars, 30d

Stars over time

2025-01-28 · 2832026-07-07 · 286

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/winvector/vtreat on 2026-07-19.

CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Research and citation (1)
JOSS paper
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (2)
R >= 3.4.0wrapr
Imports (2)
statsdigest
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Code Composition
R 6,794 (59%)Rd 2,749 (24%)Vignettes 2,064 (18%)Other 2 (0%)
Code characteristics
Object systems
S340
Cyclomatic complexity
2.0 median / 42 max
Test cases
155 / 0.00 per code line

Test coverage

Line coverage

80%

Expression

76.0%

Tests / Examples

80.0% / 56% ex

Functions

160 52 exported

Complexity

4.4 avg / 42 max

Call network

160 nodes / 221 edges

Loading call graph…

Lowest coverage

160 functions
FunctionCycloCoverage
apply_transform exp10%
center_scale exp40%
fit_transform exp10%
get_feature_names exp10%
get_score_frame exp10%
get_transform exp10%

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Copyright holders (1)
Copyright holder · added in 0.6.0
Package Timeline

50 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.6.5Latest
    2024-06-12 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.6.4
    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
    2021-06-11 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.6.2
    2020-10-17 · diff ↗
  • 1.6.1
    2020-08-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.6.0
    2020-03-11 · diff ↗
  • 1.5.2
    2020-02-08 · diff ↗
  • 1.5.1
    2020-01-16 · diff ↗
  • 1.5.0
    2020-01-08 · diff ↗
Show 46 earlier events

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
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →