newdata: Generate New Data Frames for Prediction

Generates new data frames for predictive purposes. By default, all specified variables vary across their range while all other variables are held constant at the default reference value. Types, classes, factor levels and time zones are always preserved. The user can specify the length of each sequence, require that only observed values and combinations are used and add new variables. The result is intended to be passed to the prediction method of a fitted model object to visualize the effect of one or more variables while controlling for the others.

Version: 0.1.0
Depends: R (≥ 4.1)
Imports: chk, dplyr, hms, lifecycle, rlang, tibble, tidyr, vctrs
Suggests: covr, datasets, spelling, testthat (≥ 3.0.0), withr
Published: 2026-11-07
DOI: 10.32614/CRAN.package.newdata (may not be active yet)
Author: Joe Thorley ORCID iD [aut, cre], Kirill Müller ORCID iD [aut], Ayla Pearson ORCID iD [aut], Nadine Hussein ORCID iD [ctb], Maëlle Salmon ORCID iD [ctb], Poisson Consulting [fnd, cph]
Maintainer: Joe Thorley <joe at poissonconsulting.ca>
BugReports: https://github.com/poissonconsulting/newdata/issues
License: MIT + file LICENSE
URL: https://poissonconsulting.github.io/newdata/, https://github.com/poissonconsulting/newdata/
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: newdata results

Documentation:

Reference manual: newdata.html , newdata.pdf

Downloads:

Package source: newdata_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): newdata_0.1.0.tgz, r-oldrel (arm64): newdata_0.1.0.tgz, r-release (x86_64): newdata_0.1.0.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=newdata to link to this page.