toNA: Set specified values in an object to NA

Description Usage Arguments Details Value Author(s) See Also

Description

Sets all specified values in an object to NA.

Usage

1
toNA(x,values=NA)

Arguments

x

A vector, matrix or data frame (max 2D).

values

One or more values that are to be set to NA.

Details

toNA sets all entries in an object in values to NA. Useful for converting various missing value samps to NA.

Value

The object with NAs replacing all specified values.

Author(s)

Jim Lemon

See Also

%in%


prettyR documentation built on May 2, 2019, 2:16 a.m.

Related to toNA in prettyR...