prep.scale.asjson: Converts preprocessing item from 'prep.scale' method to JSON...

View source: R/prep.R

prep.scale.asjsonR Documentation

Converts preprocessing item from 'prep.scale' method to JSON elements

Description

Converts preprocessing item from 'prep.scale' method to JSON elements

Usage

prep.scale.asjson(params, npred, left = 0, right = 1)

Arguments

params

model parameters precomputed by using prep.fit()

npred

number of predictors in original dataset

left

index of first variable after trimming (if any)

right

index of last variable after trimming (if any)

Value

list with main elements required for JSON with preprocessing model compatible with preprocessing web-application (ml, mpl, mp, mpl_new, mp_new, info)


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