Learn R Programming

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

recipes (version 0.1.2)

Preprocessing Tools to Create Design Matrices

Description

An extensible framework to create and preprocess design matrices. Recipes consist of one or more data manipulation and analysis "steps". Statistical parameters for the steps can be estimated from an initial data set and then applied to other data sets. The resulting design matrices can then be used as inputs into statistical or machine learning models.

Copy Link

Version

Install

install.packages('recipes')

Monthly Downloads

158,337

Version

0.1.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Max Kuhn

Last Published

January 11th, 2018

Functions in recipes (0.1.2)

check_cols

Check if all Columns are Present
check_missing

Check for Missing Values
bake

Apply a Trained Data Recipe
biomass

Biomass Data
covers

Raw Cover Type Data
credit_data

Credit Data
discretize

Discretize Numeric Variables
fixed

Helper Functions for Profile Data Sets
add_role

Manually Add Roles
add_step

Add a New Operation to the Current Recipe
formula.recipe

Create a Formula from a Prepared Recipe
has_role

Role Selection
okc

OkCupid Data
prep

Train a Data Recipe
reexports

Objects exported from other packages
selections

Methods for Select Variables in Step Functions
step_date

Date Feature Generator
step

step sets the class of the step`` andcheck` is for checks.
step_BoxCox

Box-Cox Transformation for Non-Negative Data
step_corr

High Correlation Filter
step_bin2factor

Create a Factors from A Dummy Variable
step_bs

B-Spline Basis Functions
juice

Extract Finalized Training Set
names0

Naming Tools
step_center

Centering Numeric Data
step_classdist

Distances to Class Centroids
step_depth

Data Depths
step_intercept

Add intercept (or constant) column
step_invlogit

Inverse Logit Transformation
step_count

Create Counts of Patterns using Regular Expressions
step_log

Logarithmic Transformation
step_logit

Logit Transformation
step_kpca

Kernel PCA Signal Extraction
step_lincomb

Linear Combination Filter
step_ns

Nature Spline Basis Functions
step_dummy

Dummy Variables Creation
step_factor2string

Convert Factors to Strings
step_isomap

Isomap Embedding
step_nzv

Near-Zero Variance Filter
step_ordinalscore

Convert Ordinal Factors to Numeric Scores
step_rm

General Variable Filter
step_knnimpute

Imputation via K-Nearest Neighbors
step_other

Collapse Some Categorical Levels
step_pca

PCA Signal Extraction
tidy.recipe

Tidy the Result of a Recipe
step_scale

Scaling Numeric Data
step_sqrt

Square Root Transformation
step_string2factor

Convert Strings to Factors
step_num2factor

Convert Numbers to Factors
step_range

Scaling Numeric Data to a Specific Range
step_ratio

Ratio Variable Creation
summary.recipe

Summarize a Recipe
terms_select

Select Terms in a Step Function.
step_modeimpute

Impute Nominal Data Using the Most Common Value
step_novel

Simple Value Assignments for Novel Factor Levels
step_poly

Orthogonal Polynomial Basis Functions
yj_trans

Internal Functions
recipes

recipes: A package for computing and preprocessing design matrices.
step_YeoJohnson

Yeo-Johnson Transformation
step_bagimpute

Imputation via Bagged Trees
step_holiday

Holiday Feature Generator
step_hyperbolic

Hyperbolic Transformations
print.recipe

Print a Recipe
recipe

Create a Recipe for Preprocessing Data
step_discretize

Discretize Numeric Variables
step_profile

Create a Profiling Version of a Data Set
step_lowerimpute

Impute Numeric Data Below the Threshold of Measurement
step_meanimpute

Impute Numeric Data Using the Mean
step_shuffle

Shuffle Variables
step_downsample

Down-Sample a Data Set Based on a Factor Variable
step_ica

ICA Signal Extraction
step_interact

Create Interaction Variables
step_spatialsign

Spatial Sign Preprocessing
step_window

Moving Window Functions
step_zv

Zero Variance Filter
step_regex

Create Dummy Variables using Regular Expressions
step_relu

Apply (Smoothed) Rectified Linear Transformation
step_unorder

Convert Ordered Factors to Unordered Factors
step_upsample

Up-Sample a Data Set Based on a Factor Variable