nan_to_na: Convert 'NaN' to 'NA' in vectors

View source: R/data_transformation.R

nan_to_naR Documentation

Convert NaN to NA in vectors

Description

Convert NaN to NA in vectors

Usage

nan_to_na(x, na_type = NULL)

Arguments

x

The vector in which to replace NaN values.

na_type

The NA type to replace NaN values with, eg: NA; NA_real_; etc.

Value

A vector that has NA values replaced..


stuart-morrison/sumo documentation built on Jan. 2, 2025, 8:45 p.m.