Hello,
Does anyone knows why tokens("0.1.0", ".") or tokens("0.1.0", char(46)) produces 5 cells rowvector whereas tokens("0 1 0", " ") produces only 3 cells?
This is what I get in Stata 14.2:
Does anyone knows why tokens("0.1.0", ".") or tokens("0.1.0", char(46)) produces 5 cells rowvector whereas tokens("0 1 0", " ") produces only 3 cells?
This is what I get in Stata 14.2:
. mata: tokens("0.1.0", ".")
1 2 3 4 5
+---------------------+
1 | 0 . 1 . 0 |
+---------------------+
. mata: tokens("0 1 0", " ")
1 2 3
+-------------+
1 | 0 1 0 |
+-------------+
1 2 3 4 5
+---------------------+
1 | 0 . 1 . 0 |
+---------------------+
. mata: tokens("0 1 0", " ")
1 2 3
+-------------+
1 | 0 1 0 |
+-------------+
Comment