convertAny: Convert Values Across an Entire Data Frame or Vector

View source: R/BDtoPyPop.R

convertAnyR Documentation

Convert Values Across an Entire Data Frame or Vector

Description

Converts all instances of a value in a data frame or vector to a specified value.

Usage

convertAny(dataset, change.from = NA, change.to = "****")

Arguments

dataset

A data frame or vector of values.

change.from

The value present in the data frame or vector that should be changed. The default value is NA.

change.to

The value to which 'change.from' should be changed to. The default value is "****".

Value

A data frame or vector in which 'change.from' has been converted to 'change.to'.

Examples

dataset <- convertAny(sHLAdata)


HLAtools documentation built on June 8, 2025, 12:24 p.m.