Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

toNA

Set specified values in an object to NA


Description

Sets all specified values in an object to NA.

Usage

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


prettyR

Pretty Descriptive Stats

v2.2-3
GPL (>= 2)
Authors
Jim Lemon <drjimlemon@gmail.com>, Philippe Grosjean <phgrosjean@sciviews.org>
Initial release
2019-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.