clamp_data: Clamp values in a dataset

View source: R/predict2.R

clamp_dataR Documentation

Clamp values in a dataset

Description

This function clamp values in the dataset object based on minimum and maximum values on the train data.

Usage

clamp_data(object, dataset)

Arguments

object

A data.frame with the training data or a model returned by train, from which the training data is obtained.

dataset

Either a data.frame or a rasterStack object with values to be clamped. Columns or layers names should match the columns of the training data.

Value

The dataset with values clamped.


correapvf/caretSDM documentation built on June 2, 2022, 8:29 a.m.