📄 mf_missingof.hlp
字号:
{smcl}
{* 16sep2004}{...}
{cmd:help mata missingof()}
{hline}
{* index missingof()}{...}
{* index missing values}{...}
{title:Title}
{p 4 8 2}
{bf:[M-5] missingof() -- Appropriate missing value}
{title:Syntax}
{p 8 8 2}
{it:transmorphic scalar}
{cmd:missingof(}{it:transmorphic matrix A}{cmd:)}
{title:Description}
{p 4 4 2}
{cmd:missingof(}{it:A}{cmd:)} returns a missing of the same element type
as {it:A}:
{p 8 12 2}
o{bind: }if {it:A} is real, a real missing is returned;
{p 8 12 2}
o{bind: }if {it:A} is complex, a complex missing is returned;
{p 8 12 2}
o{bind: }if {it:A} is pointer, {cmd:NULL} is returned;
{p 8 12 2}
o{bind: }if {it:A} is string, "" is returned.
{title:Remarks}
{p 4 4 2}
{cmd:missingof()} is useful when creating empty matrices of the same type as
another matrix, e.g.,
{cmd:newmat = J(rows(x), cols(x), missingof(x))}
{title:Conformability}
{cmd:missingof(}{it:A}{it:)}
{it:A}: {it:r x c}
{it:result}: 1 {it:x 1}
{title:Diagnostics}
{p 4 4 2}
None.
{title:Source code}
{p 4 4 2}
Function is built-in.
{title:Also see}
{p 4 13 2}
Manual: {hi:[M-5] missingof()}
{p 4 13 2}
Online: help for
{bf:{help m4_utility:[M-4] utility}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -