mitchelloharawild / distributional

Vectorised distributions for R
https://pkg.mitchelloharawild.com/distributional
GNU General Public License v3.0
94 stars 15 forks source link

Naming hilo vectors does not work #23

Closed mitchelloharawild closed 3 years ago

mitchelloharawild commented 4 years ago
library(distributional)
vctrs::vec_c(a=new_hilo(1,2,3))
#> <hilo[1]>
#> [1] [NULL, NULL]

Created on 2020-05-29 by the reprex package (v0.3.0)

mitchelloharawild commented 3 years ago

Seems to be an issue with naming, rather than combining:

library(distributional)
setNames(new_hilo(1,2,3), "a")
#> <hilo[1]>
#> [1] [NULL, NULL]

Created on 2020-08-06 by the reprex package (v0.3.0)