Closed mattansb closed 6 months ago
Heh, oh yeah that definitely shouldn't allow you to do that.
Thanks for raising this, added a PR to fix. Basically, you should not be able to input a data.frame into rvar()
. If all the columns in the data frame are of the same type, convert to a matrix first (as you did), and if they aren't, consider using as_draws_rvars()
instead of rvar()
to convert each column to an rvar
instead of the entire data frame to a single rvar
.
Thanks!
Some funny things happen when an rvar is made from a data frame. To make a long story short, these can all be traced back to this: