replaceElement: Replaces elements of a vector based on the dictonary provided

replaceElementR Documentation

Replaces elements of a vector based on the dictonary provided

Description

Replaces elements of a vector based on the dictonary provided

Usage

replaceElement(vector, dictionary = NULL, labels = NULL, NAreplace = NA)

Arguments

vector

a vector

dictionary

a named vector or just a vector if labels are provided

labels

a character vector

NAreplace

that to put instead of NAs

Value

A list with $newVector and $dictionary.


oganm/ogbox documentation built on Feb. 18, 2024, 12:37 a.m.