Learn R Programming

⚠️There's a newer version (0.1.11) of this package.Take me there.

modelr

The goal of modelr is to provide functions that help you create elegant pipelines when modelling.

Installation

You can install modelr from github with:

# install.packages("devtools")
devtools::install_github("hadley/modelr")

Copy Link

Version

Install

install.packages('modelr')

Monthly Downloads

519,388

Version

0.1.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

August 31st, 2016

Functions in modelr (0.1.0)

crossv_mc

Generate cross-validated test-training pairs
add_predictors

Add predictors to a formula
data_grid

Generate a data grid.
geom_ref_line

Add a reference line (ggplot2).
formulas

Create a list of formulas
bootstrap

Generate n bootstrap replicates.
fit_with

Fit a list of formulas
add_predictions

Add predictions to a data frame
heights

Height and income data.
add_residuals

Add residuals to a data frame
model_matrix

Construct a design matrix
resample_bootstrap

Generate a boostrap replicate
resample

A "lazy" resample.
model-quality

Compute model quality for a given dataset
resample_partition

Generate an exclusive partitioning of a data frame
na.warn

Handle missing values with a warning
seq_range

Generate a sequence over the range of a vector
%>%

Pipe operator
typical

Find the typical value
sim

Simple simulated datasets
%>%

Pipe operator