reclassify: Reclassify values in a vector.

View source: R/reclassify.R

reclassifyR Documentation

Reclassify values in a vector.

Description

Function to reclassify values in a vector

Usage

reclassify(x, rcl)

Arguments

x
  • vector with values to reclassify

rcl
  • list of lists specifying reclassifications

Details

"rcl" is a list of lists. Each sublist is of the form list(new=new, old=old), where the value "new" is the new classification assigned to each element in "x" that is found in the vector "old".

Value

vector of length(x)


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.