help mata mm_realofstr()
-------------------------------------------------------------------------------

Title

mm_realofstr() -- Convert string to real

------------------------------------------------------------------------------- Note: An official strtoreal() function was introduced in Stata 9.1 (see help [M-5] strtoreal()). This makes mm_realofstr() obsolete. -------------------------------------------------------------------------------

Syntax

real matrix mm_realofstr(string matrix s)

Description

mm_realofstr(s) returns s as a numeric value or missing using Stata's real() function (see help string functions).

When arguments are not scalars, mm_realofstr() returns element-by-element results.

Conformability

mm_realofstr(s): s: r x c result: r x c

Diagnostics

mm_realofstr(s) returns missing if s cannot be converted.

Source code

mm_realofstr.mata

Author

Ben Jann, ETH Zurich, jann@soz.gess.ethz.ch

Also see

Online: help for [M-5] strtoreal(), [M-5] strofreal(), [M-4] string,