MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Missing Group Values


Grouping variables can have missing values. This table shows the missing value indicator
for each data type. If a grouping variable has missing values, then findgroups assigns
NaN as the group number, and splitapply ignores the corresponding values in the data
variables.


Grouping Variable Data Type Missing Value Indicator
Numeric NaN
Logical (Cannot be missing)
Categorical <undefined>
datetime NaT
duration NaN
Cell array of character vectors ''
String <missing>

See Also


findgroups | rowfun | splitapply | varfun


See Also
Free download pdf