Learn R Programming

wrMisc (version 1.15.3.1)

.setLowestTo: Set lowest value to given value

Description

This function aims to set lowest value of x to value 'setTo'

Usage

.setLowestTo(x, setTo)

Value

This function returns a numeric vector

Arguments

x

(numeric) main vector to be treated

setTo

(numeric) replacement value

See Also

Examples

Run this code
.setLowestTo(9:4, 6)

Run the code above in your browser using DataLab