na2val: Convert NA values to a number

View source: R/utils.R

na2valR Documentation

Convert NA values to a number

Description

Convert NA values to a number

Usage

na2val(x, val = 0)

Arguments

x

A value to be tested

val

The value to replace NAs with

Details

This is an internal function used to convert NA to something else. This is useful in if() statements when checking the value of an object which may possibly not exist.

This function is vectorized.

Value

The value


UCANR-IGIS/uasimg documentation built on Jan. 16, 2025, 10:29 p.m.