clamp_ts.Rdclamp time-series datat that are S shaped. The value in layers before the minimum value in a cell can be set to that minimum value, and the value in layers after the maximum value for a cell can be set to that maximum value.
# S4 method for class 'SpatRaster'
clamp_ts(x, min=FALSE, max=TRUE, filename="", ...)SpatRaster
logical. If TRUE the time-series is clamped to the minimum value
logical. If TRUE the time-series is clamped to the maximum value
character. Output filename
additional arguments for writing files as in writeRaster
SpatRaster