replaceWithMissing
Class: dataset
(Not Recommended) Insert missing data indicators into a dataset array
The dataset
data type is not recommended. To work with heterogeneous data,
use the MATLAB®
table
data type instead. See MATLAB
table
documentation for more information.
Syntax
ds2 = replaceWithMissing(ds,Name,Value)
Description
replaces specified values in a dataset array with standard missing data indicators using
options specified by one or more ds2
= replaceWithMissing(ds
,Name,Value
)Name,Value
pair arguments. Use
replaceWithMissing
to specify:
Which numeric missing value indicators to replace with
NaN
.Which character missing value indicators to replace with
''
.Which categorical levels to replace with
<undefined>
.
Input Arguments
|
|
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
Vector of numeric values that |
|
Character vector or cell array of character vectors naming the
categorical levels that |
|
Character vector or cell array of character vectors containing the
text that |
|
Specified set of variables in Default: All variables in |
Output Arguments
|
|