arlc_replace_na: Replace NA with a Specified Value

View source: R/arlc_utils.R

arlc_replace_naR Documentation

Replace NA with a Specified Value

Description

This function replaces NA values in a vector or data frame with a specified value.

Usage

arlc_replace_na(x, value)

Arguments

x

A vector or data frame.

value

The value to replace NA with.

Value

The vector or data frame with NA values replaced.

Examples

arlc_replace_na(c(1, NA, 3), 0)
arlc_replace_na(data.frame(a = c(1, NA, 3), b = c(NA, NA, 3)), 0)

arlclustering documentation built on Sept. 11, 2024, 8:07 p.m.