Closed ganesh-krishnan closed 7 years ago
You're absolutely right. I have struggled with tibbles myself, and as they get more popular (thanks in part to the haven package, I'm sure), I know I'll need to fix my code to accommodate them. The reason they don't work is that the syntax for calling a vector from a data.frame differs between tibbles and non-tibbles. What's nice is that the syntax used for tibbles also works for regular data.frames, but is less intuitive in my opinion. The next update to cobalt will include support for tibbles. For now, you will need to remove the tibble class and stick with old-fashioned data.frames.
I just updated the development version to support tibbles. Give it a try and let me know if you find any bugs.
Sounds good. I'll check it out and let you know. Thanks!
Gave it a shot yesterday. Works with both bal.tab
and love.plot
! Awesome!
Didn't give bal.plot
a shot though.
For some strange reason,
bal.tab
does not work with tibbles. Minimal reproducible example:This results in:
But this works (note that the only difference is that I'm not using tibbles):
This gives the desired result: