Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: `inspect_imb()` fails on factor columns #26

Closed
RoelVerbelen opened this issue Feb 23, 2020 · 1 comment
Closed

Bug: `inspect_imb()` fails on factor columns #26

RoelVerbelen opened this issue Feb 23, 2020 · 1 comment
Assignees
Labels
bug

Comments

@RoelVerbelen
Copy link

@RoelVerbelen RoelVerbelen commented Feb 23, 2020

Using the latest package version on github, I'm getting errors for inspect_imb() when working with factors:

# Load 
library(inspectdf)
library(dplyr)

# Change character to factor
starwars_factor <- starwars %>% 
  mutate_if(is.character, as.factor)

# Imbalance plot
inspect_imb(starwars_factor)
#> Error: Tibble columns must have consistent sizes, only values of size one are recycled:
#> * Size 13: Existing data
#> * Size 17: Column `prop`

Created on 2020-02-24 by the reprex package (v0.3.0)

@alastairrushworth alastairrushworth self-assigned this Mar 9, 2020
@alastairrushworth
Copy link
Owner

@alastairrushworth alastairrushworth commented Jun 19, 2020

Thanks again for the reports @RoelVerbelen! This has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.