📄 mf_uniqrows.hlp
字号:
{smcl}
{* 16sep2004}{...}
{cmd:help mata uniqrows()}
{hline}
{* index uniqrows()}{...}
{title:Title}
{p 4 8 2}
{bf:[M-5] uniqrows() -- Obtain sorted, unique values}
{title:Syntax}
{p 8 8 2}
{it:transmorphic matrix}
{cmd:uniqrows(}{it:transmorphic matrix P}{cmd:)}
{title:Description}
{p 4 4 2}
{cmd:uniqrows(}{it:P}{cmd:)}
returns a sorted matrix containing the unique rows of {it:P}.
{title:Remarks}
: {cmd:x}
{res} {txt}1 2 3
{c TLC}{hline 13}{c TRC}
1 {c |} {res}4 5 7{txt} {c |}
2 {c |} {res}4 5 6{txt} {c |}
3 {c |} {res}1 2 3{txt} {c |}
4 {c |} {res}4 5 6{txt} {c |}
{c BLC}{hline 13}{c BRC}
: {cmd:uniqrows(x)}
{res} {txt}1 2 3
{c TLC}{hline 13}{c TRC}
1 {c |} {res}1 2 3{txt} {c |}
2 {c |} {res}4 5 6{txt} {c |}
3 {c |} {res}4 5 7{txt} {c |}
{c BLC}{hline 13}{c BRC}
{title:Conformability}
{cmd:uniqrows(}{it:P}{it:)}
{it:P}: {it:r1 x c1}
{it:result}: {it:r2 x c1}, {it:r2} <= {it:r1}
{title:Diagnostics}
{p 4 4 2}
In {cmd:uniqrows(}{it:P}{it:)},
if {cmd:rows(}{it:P}{cmd:)}==0,
{cmd:J(0, cols(}{it:P}{cmd:), missingof(}{it:P}{cmd:))} is returned.
{p 4 4 2}
If {cmd:rows(}{it:P}{cmd:)}>0 and {cmd:cols(}{it:P}{cmd:)}==0,
{cmd:J(1, 0, missingof(}{it:P}{cmd:))} is returned.
{title:Source code}
{p 4 4 2}
{view uniqrows.mata, adopath asis:uniqrows.mata}
{title:Also see}
{p 4 13 2}
Manual: {hi:[M-5] uniqrows()}
{p 4 13 2}
Online: help for
{bf:{help mf_sort:[M-5] sort()}};
{bf:{help m4_manipulation:[M-4] manipulation}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -