Open briandk opened 7 years ago
This seems to be a tibble issue.Notice that it works for a data.frame:
mtcars %>% select(cyl, mpg) %>% granovagg.ds(data = .)
That suggests that we're subsetting the DF somewhere and assuming we would get a vector back. Tibbles don't behave that way.
ggplot2::mpg[, 1] ggplot2::mpg['model']
both return tibbles
mtcars[, 1] mtcars[, 'cyl']
both return vectors.
@WilDoane you were right on the money: it was failing because of the tibbles. The hard part was figuring out which part was failing. Turns out it was the t.test()
function. An unlikely culprit.
But, if I did this right, the fix is just two lines.
produces this error