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.
ds2 = replaceWithMissing(ds,Name,Value)
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>
.
|
|
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
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 |
|
|