RobinHankin / disordR

https://robinhankin.github.io/disordR/
1 stars 0 forks source link

named vectors #25

Open RobinHankin opened 3 years ago

RobinHankin commented 3 years ago

The names of a named vector are lost:

> dput(disord(c(b=5,c=2,a=6)))
new("disord", .Data = c(5, 2, 6), hash = "b7cf7d05a06606b919bc758c0804aabae4ca9c9b")
> 

It seems to me that the name/value pairs are not stored in any particular order, which would suggest that a named vector might be storable in a similar way to a disord object. See also https://github.com/RobinHankin/hyper2/issues/101 and https://github.com/RobinHankin/hyper2/issues/104

RobinHankin commented 2 years ago

The best prior art for this would be SQL merge.