help mata Elabel_Rules__()

Title

Elabel_Rules__() -- Parse transformation rules (class)

Syntax

class Elabel_Rules__ scalar r

void
r.set(string scalar rules)

string scalar
r.set()

real colvector
r.from()

real colvector
r.to()

string colvector
r.text()

real colvector
r.null()

string scalar
r.rules()

where rules is
(from_{#|numlist}
=
to_{#|numlist}
[ "label" [...] ])
...

Description

Elabel_Rules__() returns instances of class Elabel_Rules__;
Elabel_Rules__() extends
Elabel_Utilities(). The
class is used for developing the elabel package. See
elabel_u_parse_rules() for the corresponding Mata
function.

r.set() sets the rules to be parsed; without arguments,
the function returns rules as typed.

r.from(), r.to(), and r.text() return
the respective elements in rules.

r.null() indicates, for each element of r.text(),
whether a null string ("") has been specified.

r.rules() returns rules in the form
(#=#) ..., i.e., all numlists are
split into single numbers, and any labels are omitted.

Conformability

As indicated above.

Diagnostics

Not documented; class functions are for internal use.

Source code

Distributed with the elabel package.

Author

Daniel Klein

University of Kassel

klein.daniel.81@gmail.com

Also see

Online: mata

if installed: elabel