Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


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

recipes (version 0.1.9)

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

218,325

Version

0.1.9

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 7th, 2020

Functions in recipes (0.1.9)

detect_step

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

check that newly created variable names don't overlap
check_range

Check Range Consistency
bake

Apply a Trained Data Recipe
check_class

Check Variable Class
check_new_values

Check for New Values
check_missing

Check for Missing Values
check_cols

Check if all Columns are Present
check_type

Quantitatively check on variables
add_step

Add a New Operation to the Current Recipe
juice

Extract Finalized Training Set
names0

Naming Tools
format_ch_vec

Helpers for printing step functions
yj_trans

Internal Functions
formula.recipe

Create a Formula from a Prepared Recipe
recipes

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

Role Selection
step_BoxCox

Box-Cox Transformation for Non-Negative Data
recipes_pkg_check

Update packages
fully_trained

Check to see if a recipe is trained/prepared
step_factor2string

Convert Factors to Strings
step_dummy

Dummy Variables Creation
step_YeoJohnson

Yeo-Johnson Transformation
discretize

Discretize Numeric Variables
step_filter

Filter rows using dplyr
prep

Train a Data Recipe
step_corr

High Correlation Filter
recipe

Create a Recipe for Preprocessing Data
prepper

Wrapper function for preparing recipes within resampling
selections

Methods for Select Variables in Step Functions
step_hyperbolic

Hyperbolic Transformations
step

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

Sort rows using dplyr
step_kpca

Kernel PCA Signal Extraction
step_invlogit

Inverse Logit Transformation
fixed

Helper Functions for Profile Data Sets
step_medianimpute

Impute Numeric Data Using the Median
step_kpca_poly

Polynomial Kernel PCA Signal Extraction
step_meanimpute

Impute Numeric Data Using the Mean
print.recipe

Print a Recipe
reexports

Objects exported from other packages
step_bs

B-Spline Basis Functions
step_count

Create Counts of Patterns using Regular Expressions
step_ordinalscore

Convert Ordinal Factors to Numeric Scores
rand_id

Make a random identification field for steps
step_knnimpute

Imputation via K-Nearest Neighbors
step_nnmf

NNMF Signal Extraction
step_depth

Data Depths
step_lag

Create a lagged predictor
step_isomap

Isomap Embedding
step_date

Date Feature Generator
step_kpca_rbf

Radial Basis Function Kernel PCA Signal Extraction
step_bagimpute

Imputation via Bagged Trees
step_interact

Create Interaction Variables
step_bin2factor

Create a Factors from A Dummy Variable
step_lincomb

Linear Combination Filter
step_lowerimpute

Impute Numeric Data Below the Threshold of Measurement
step_profile

Create a Profiling Version of a Data Set
tunable.step_bagimpute

tunable methods for recipes
step_nzv

Near-Zero Variance Filter
step_integer

Convert values to predefined integers
step_holiday

Holiday Feature Generator
step_logit

Logit Transformation
step_rename_at

Rename multiple columns
step_ica

ICA Signal Extraction
step_other

Collapse Some Categorical Levels
step_num2factor

Convert Numbers to Factors
step_rm

General Variable Filter
step_classdist

Distances to Class Centroids
update.step

Update a recipe step
step_poly

Orthogonal Polynomial Basis Functions
step_center

Centering numeric data
roles

Manually Alter Roles
step_sqrt

Square Root Transformation
step_discretize

Discretize Numeric Variables
step_intercept

Add intercept (or constant) column
step_mutate_at

Mutate multiple columns
step_normalize

Center and scale numeric data
step_pca

PCA Signal Extraction
step_downsample

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

Create Dummy Variables using Regular Expressions
step_pls

Partial Least Squares Feature Extraction
step_log

Logarithmic Transformation
step_scale

Scaling Numeric Data
step_geodist

Distance between two locations
step_mutate

Add new variables using mutate
step_inverse

Inverse Transformation
step_sample

Sample rows using dplyr
step_shuffle

Shuffle Variables
step_modeimpute

Impute Nominal Data Using the Most Common Value
step_range

Scaling Numeric Data to a Specific Range
summary.recipe

Summarize a Recipe
step_zv

Zero Variance Filter
step_ratio

Ratio Variable Creation
step_novel

Simple Value Assignments for Novel Factor Levels
step_ns

Nature Spline Basis Functions
step_rename

Rename variables by name
step_string2factor

Convert Strings to Factors
terms_select

Select Terms in a Step Function.
tidy.recipe

Tidy the Result of a Recipe
step_naomit

Remove observations with missing values
step_relevel

Relevel factors to a desired level
step_rollimpute

Impute Numeric Data Using a Rolling Window Statistic
step_slice

Filter rows by position using dplyr
step_window

Moving Window Functions
step_upsample

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

Spatial Sign Preprocessing
step_relu

Apply (Smoothed) Rectified Linear Transformation
step_unorder

Convert Ordered Factors to Unordered Factors
step_unknown

Assign missing categories to "unknown"