replace_by: Replace elements by other values

View source: R/algorithm.R

replace_byR Documentation

Replace elements by other values

Description

Replace elements by other values

Usage

replace_by(target, from, to, other = NULL)

Arguments

target

target vector, matrix or other types

from

the element values which should be replaced

to

the values which should be set for the replaced elements

other

if it is not NULL value, the target elements which is not hit to any of from values are replaced by other.

Value

replaced results


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.