代码拉取完成,页面将自动刷新
{smcl}
{* 22may2006}{...}
{cmd:help mata mm_realofstr()}
{hline}
{title:Title}
{p 4 4 2}
{bf: mm_realofstr() -- Convert string to real}
{hline}
{p 2 2 2}Note: An official {cmd:strtoreal()} function was introduced in
Stata 9.1 (see help {bf:{help mf_strtoreal:[M-5] strtoreal()}}). This makes
{cmd:mm_realofstr()} obsolete.{p_end}
{hline}
{title:Syntax}
{p 8 12 2}
{it:real matrix}
{cmd:mm_realofstr(}{it:string matrix s}{cmd:)}
{title:Description}
{p 4 4 2}
{cmd:mm_realofstr(}{it:s}{cmd:)} returns {it:s} as a numeric value
or {it:missing} using
Stata's {cmd:real()} function (see help {help string functions}).
{p 4 4 2}
When arguments are not scalars, {cmd:mm_realofstr()} returns
element-by-element results.
{title:Conformability}
{cmd:mm_realofstr(}{it:s}{cmd:)}:
{it:s}: {it:r x c}
{it:result}: {it:r x c}
{title:Diagnostics}
{p 4 4 2}
{cmd:mm_realofstr(}{it:s}{cmd:)} returns missing if {it:s}
cannot be converted.
{title:Source code}
{p 4 4 2}
{help moremata_source##mm_realofstr:mm_realofstr.mata}
{title:Author}
{p 4 4 2} Ben Jann, University of Bern, jann@soz.unibe.ch
{title:Also see}
{p 4 13 2}
Online: help for
{bf:{help mf_strtoreal:[M-5] strtoreal()}},
{bf:{help mf_strofreal:[M-5] strofreal()}},
{bf:{help m4_string:[M-4] string}},
{bf:{help moremata}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。