prep.center.fromjson: Converts JSON elements to preprocessing item for...

View source: R/prep.R

prep.center.fromjsonR Documentation

Converts JSON elements to preprocessing item for 'prep.center' method

Description

Converts JSON elements to preprocessing item for 'prep.center' method

Usage

prep.center.fromjson(mp, mp_new, left = 0, right = 1, left.tot = 0)

Arguments

mp

model parameters from JSON (user defined)

mp_new

model parameters from JSON after training

left

index of first variable after trimming (if any)

right

index of last variable after trimming (if any)

left.tot

total, accumulated shift on the left part

Value

prep object for the method


mdatools documentation built on March 6, 2026, 5:08 p.m.