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

recipes (version 0.1.3)

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

126,886

Version

0.1.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

June 16th, 2018

Functions in recipes (0.1.3)

juice

Extract Finalized Training Set
recipes

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

Methods for Select Variables in Step Functions
step_discretize

Discretize Numeric Variables
step_intercept

Add intercept (or constant) column
fully_trained

Check to see if a recipe is trained/prepared
recipe

Create a Recipe for Preprocessing Data
step_depth

Data Depths
step_bin2factor

Create a Factors from A Dummy Variable
step_inverse

Inverse Transformation
step_bs

B-Spline Basis Functions
step_interact

Create Interaction Variables
step_invlogit

Inverse Logit Transformation
step_meanimpute

Impute Numeric Data Using the Mean
yj_trans

Internal Functions
step_modeimpute

Impute Nominal Data Using the Most Common Value
step_pca

PCA Signal Extraction
step_center

Centering Numeric Data
reexports

Objects exported from other packages
step_other

Collapse Some Categorical Levels
step_classdist

Distances to Class Centroids
step

step sets the class of the step and check is for checks.
step_naomit

Remove observations with missing values
step_ratio

Ratio Variable Creation
step_BoxCox

Box-Cox Transformation for Non-Negative Data
step_relu

Apply (Smoothed) Rectified Linear Transformation
step_novel

Simple Value Assignments for Novel Factor Levels
step_profile

Create a Profiling Version of a Data Set
step_range

Scaling Numeric Data to a Specific Range
step_regex

Create Dummy Variables using Regular Expressions
step_YeoJohnson

Yeo-Johnson Transformation
step_unorder

Convert Ordered Factors to Unordered Factors
step_count

Create Counts of Patterns using Regular Expressions
step_holiday

Holiday Feature Generator
step_date

Date Feature Generator
step_rm

General Variable Filter
step_corr

High Correlation Filter
step_hyperbolic

Hyperbolic Transformations
step_factor2string

Convert Factors to Strings
step_kpca

Kernel PCA Signal Extraction
step_lag

Create a lagged predictor
step_window

Moving Window Functions
step_zv

Zero Variance Filter
step_pls

Partial Least Squares Feature Extraction
step_downsample

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

Logit Transformation
step_ica

ICA Signal Extraction
step_poly

Orthogonal Polynomial Basis Functions
step_rollimpute

Impute Numeric Data Using a Rolling Window Statistic
step_dummy

Dummy Variables Creation
step_scale

Scaling Numeric Data
step_upsample

Up-Sample a Data Set Based on a Factor Variable
step_isomap

Isomap Embedding
step_knnimpute

Imputation via K-Nearest Neighbors
step_lowerimpute

Impute Numeric Data Below the Threshold of Measurement
step_ordinalscore

Convert Ordinal Factors to Numeric Scores
step_nzv

Near-Zero Variance Filter
step_lincomb

Linear Combination Filter
step_shuffle

Shuffle Variables
step_log

Logarithmic Transformation
step_spatialsign

Spatial Sign Preprocessing
tidy.recipe

Tidy the Result of a Recipe
step_ns

Nature Spline Basis Functions
step_sqrt

Square Root Transformation
step_string2factor

Convert Strings to Factors
summary.recipe

Summarize a Recipe
terms_select

Select Terms in a Step Function.
step_num2factor

Convert Numbers to Factors
check_missing

Check for Missing Values
check_cols

Check if all Columns are Present
detect_step

Detect if a particular step or check is used in a recipe
add_step

Add a New Operation to the Current Recipe
covers

Raw Cover Type Data
bake

Apply a Trained Data Recipe
check_range

Check Range Consistency
biomass

Biomass Data
print.recipe

Print a Recipe
credit_data

Credit Data
prep

Train a Data Recipe
fixed

Helper Functions for Profile Data Sets
add_role

Manually Add Roles
names0

Naming Tools
okc

OkCupid Data
has_role

Role Selection
discretize

Discretize Numeric Variables
formula.recipe

Create a Formula from a Prepared Recipe
step_bagimpute

Imputation via Bagged Trees