Closed mccarthy-m-g closed 3 years ago
Excellent suggestion! The github version has been updated to handle tibble and any other structure that can be coerce to data.frame.
In R, run
devtools::install_github("dcousin3/superb")
to upload this new version.
Let me know if anything.
Awesome. Thanks for the quick fix!
The superb package does not seem
tidyverse
friendly at the moment. WhensuperbPlot()
orsuperbData()
are given a tibble as input they throw an error, but if that tibble is coerced to a data frame then the functions work as expected. Here is a reprex showing this behaviour:Created on 2021-09-04 by the reprex package (v2.0.0)
It would be nice if you supported tibbles in this package since that is a data frame format commonly used in R. This would further reduce the difficulty of obtaining the statistics calculated in this package. An easy fix would likely be to just do that coercion inside the
superbPlot()
andsuperbData()
functions. I have not tested it but something like this should work: