rmmissing
Remove missing entries
Description
removes
missing entries from an array or table. If R
= rmmissing(A
)A
is a vector, then
rmmissing
removes any entry that contains missing data. If
A
is a matrix or table, then rmmissing
removes any row
that contains missing data.
Missing values are defined according to the data type of A
:
NaN
—double
,single
,duration
, andcalendarDuration
NaT
—datetime
<missing>
—string
<undefined>
—categorical
' '
—char
{''}
—cell
of character vectors
If A
is a table, then the data type of each column defines the missing
value for that column.
specifies additional parameters for removing missing entries using one or more name-value
arguments. For example, you can use R
= rmmissing(___,Name,Value
)rmmissing(A,'MinNumMissing',n)
to remove
rows of A
that contain at least n
missing values.