mitchelloharawild / distributional

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

Improve methods for sample distributions to work for non-numeric inputs #91

Open mitchelloharawild opened 1 year ago

mitchelloharawild commented 1 year ago

For example, quantile(dist_sample(list(letters[1:5])), 0.5) will poorly error. It should instead give NA_character_. Similar is needed for factors. Ref: #89