What's Changed
- use r nanotime for timestamp. fixes loss of precision, null/inf mapping
q)Rset["a";2025.07.26D23:59:59.998999999]
q)"nanotime"~last Rget"class(a)"
- fix q datetime mapping to POSIXt and null/inf mapping
- fix q short null now maps to numeric null
- removed Rclose (prev performed no action)
- more tests & code clean-up
- moved q parsing into library c code
- fix table parsing
q)\l rinit.q
q)Ropen[];
q)Rset["bbb"; ([] uu: 3 4 0N 9j; vv: 2 0n 5 3f)];
q)show Rget"bbb"
uu vv
-----
3 2
4
5
9 3
q)Rset["ccc"; `uu`vv`ww`xx!(343 243 3435f; ([] uu: til 10; vv: 10?1.0);34.2;"blabla") ];
q)show Rget["ccc"]
uu| 343 243 3435f
vv| +`uu`vv!(0 1 2 3 4 5 6 7 8 9;0.3927524 0.5170911 0.5159796 0.4066642 0.1780839 0.3017723 0.785033 0.5347096 0.7111716 0.411597)
ww| ,34.2
xx| "blabla"
q)Rset["A1"]6.7698 6.7625 6.7625 6.7625 6.7698 6.7918 6.8211 6.8432 6.8065 6.8802
q)Rset["A2"]7.2025 7.1934 7.198 7.198 7.2071 7.239 7.2481 7.2481 7.2299 7.3123
q)Rcmd"tmp<-lm(A1~A2)"
q)show Rget"tmp$model"
A1 A2
-------------
6.7698 7.2025
6.7625 7.1934
6.7625 7.198
6.7625 7.198
6.7698 7.2071
6.7918 7.239
6.8211 7.2481
6.8432 7.2481
6.8065 7.2299
6.8802 7.3123
Full Changelog: v1.3.0...v1.4.0