Learn R Programming

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

recipes (version 0.1.16)

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

197,839

Version

0.1.16

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Max Kuhn

Last Published

April 16th, 2021

Functions in recipes (0.1.16)

check_range

Check Range Consistency
check_new_values

Check for New Values
check_missing

Check for Missing Values
detect_step

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

Check if all Columns are Present
check_name

check that newly created variable names don't overlap
check_type

Quantitatively check on variables
bake

Apply a Trained Data Recipe
add_step

Add a New Operation to the Current Recipe
check_class

Check Variable Class
has_role

Role Selection
discretize

Discretize Numeric Variables
recipes_pkg_check

Update packages
prepper

Wrapper function for preparing recipes within resampling
juice

Extract Finalized Training Set
print.recipe

Print a Recipe
reexports

Objects exported from other packages
get_keep_original_cols

Get the keep_original_cols value of a recipe step
fully_trained

Check to see if a recipe is trained/prepared
step_bs

B-Spline Basis Functions
required_pkgs.step_depth

S3 methods for tracking which additional packages are needed for steps.
roles

Manually Alter Roles
recipe

Create a Recipe for Preprocessing Data
names0

Naming Tools
fixed

Helper Functions for Profile Data Sets
rand_id

Make a random identification field for steps
selections

Methods for Selecting Variables in Step Functions
step_classdist

Distances to Class Centroids
prep

Train a Data Recipe
step_corr

High Correlation Filter
step_discretize

Discretize Numeric Variables
step

step sets the class of the step and check is for checks.
formula.recipe

Create a Formula from a Prepared Recipe
step_bin2factor

Create a Factors from A Dummy Variable
step_arrange

Sort rows using dplyr
step_filter

Filter rows using dplyr
step_date

Date Feature Generator
step_center

Centering numeric data
step_depth

Data Depths
format_ch_vec

Helpers for printing step functions
step_impute_median

Impute Numeric Data Using the Median
step_dummy

Dummy Variables Creation
step_impute_mode

Impute Nominal Data Using the Most Common Value
step_ica

ICA Signal Extraction
step_factor2string

Convert Factors to Strings
step_impute_bag

Imputation via Bagged Trees
recipes

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

Internal Functions
step_YeoJohnson

Yeo-Johnson Transformation
step_impute_roll

Impute Numeric Data Using a Rolling Window Statistic
step_BoxCox

Box-Cox Transformation for Non-Negative Data
step_indicate_na

Create Missing Data Column Indicators
step_impute_knn

Imputation via K-Nearest Neighbors
step_geodist

Distance between two locations
step_impute_mean

Impute Numeric Data Using the Mean
step_impute_lower

Impute Numeric Data Below the Threshold of Measurement
step_kpca

Kernel PCA Signal Extraction
step_impute_linear

Imputation of numeric variables via a linear model.
step_mutate

Add new variables using dplyr
step_logit

Logit Transformation
step_inverse

Inverse Transformation
step_intercept

Add intercept (or constant) column
step_downsample

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

NNMF Signal Extraction
step_naomit

Remove observations with missing values
step_mutate_at

Mutate multiple columns using dplyr
step_nzv

Near-Zero Variance Filter
step_num2factor

Convert Numbers to Factors
step_normalize

Center and scale numeric data
step_isomap

Isomap Embedding
step_holiday

Holiday Feature Generator
step_hyperbolic

Hyperbolic Transformations
step_count

Create Counts of Patterns using Regular Expressions
step_invlogit

Inverse Logit Transformation
step_novel

Simple Value Assignments for Novel Factor Levels
step_cut

Cut a numeric variable into a factor
step_ns

Natural Spline Basis Functions
step_kpca_rbf

Radial Basis Function Kernel PCA Signal Extraction
step_lag

Create a lagged predictor
step_pca

PCA Signal Extraction
step_kpca_poly

Polynomial Kernel PCA Signal Extraction
step_other

Collapse Some Categorical Levels
step_ordinalscore

Convert Ordinal Factors to Numeric Scores
step_rename_at

Rename multiple columns using dplyr
step_integer

Convert values to predefined integers
step_relu

Apply (Smoothed) Rectified Linear Transformation
step_interact

Create Interaction Variables
step_lincomb

Linear Combination Filter
step_range

Scaling Numeric Data to a Specific Range
step_ratio

Ratio Variable Creation
step_sqrt

Square Root Transformation
step_select

Select variables using dplyr
step_rename

Rename variables by name using dplyr
step_log

Logarithmic Transformation
step_rm

General Variable Filter
step_upsample

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

Zero Variance Filter
step_pls

Partial Least Squares Feature Extraction
step_string2factor

Convert Strings to Factors
terms_select

Select Terms in a Step Function.
summary.recipe

Summarize a Recipe
step_window

Moving Window Functions
step_poly

Orthogonal Polynomial Basis Functions
step_shuffle

Shuffle Variables
step_sample

Sample rows using dplyr
step_scale

Scaling Numeric Data
step_spatialsign

Spatial Sign Preprocessing
step_profile

Create a Profiling Version of a Data Set
step_slice

Filter rows by position using dplyr
tidy.recipe

Tidy the Result of a Recipe
step_regex

Create Dummy Variables using Regular Expressions
step_relevel

Relevel factors to a desired level
step_unknown

Assign missing categories to "unknown"
step_unorder

Convert Ordered Factors to Unordered Factors
tunable.recipe

Find recommended methods for generating parameter values
update.step

Update a recipe step