[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: obtaining the value of c(byteorder) in Mata
Phil Schumm <email@example.com> writesw,
> [...] my understanding was that values of c() scalars were to be referenced
> in Mata using st_numscalar() and st_strscalar(). Yet while this appears to
> work for numeric scalars, it doesn't seem to work for string scalars:
> . mata: st_numscalar("c(SE)")
> . mata: st_strscalar("c(byteorder)")
Phil has discovered a bug.
Another way to obtain c() values is using Mata's -c()- function:
. mata: c("SE")
. mata: c("byteorder")
There was nothing wrong with Phil's st_numscalar() and st_strscalar()
approach, both are intended to work.
* For searches and help try: