Comments (4)
Hi @joniarroba thanks for the feedback.
It looks like the column author
is causing the issue. So I can identify the issue, could you paste the output of the following commands:
table(df$author, useNA = 'ifany')
levels(df$author)
rlang::last_error()
Thanks.
from inspectdf.
Hi @alastairrushworth , thanks for the support, here we go with the messages!
First
table(df$author, useNA = 'ifany')
vazio joni nubia vazio vazio
0 42333 36195 0 0
Second
levels(df$author)
[1] " vazio" "joni" "nubia" "vazio" "vazio"
Third
rlang::last_error()
message: Tibble columns must have consistent lengths, only values of length one are recycled:
- Length 8: Column
value
- Length 12: Column
prop
class:rlang_error
backtrace:
- inspectdf::inspect_cat(whats)
- inspectdf:::fast_table(df_cat[[i]], show_na = TRUE, show_cnt = TRUE)
- tibble::tibble(value = vals, prop = freq/length(v))
- tibble:::lst_to_tibble(xlq$output, .rows, .name_repair, lengths = xlq$lengths)
- tibble:::recycle_columns(x, .rows, lengths)
Callrlang::last_trace()
to see the full backtrace
In the mean I while find a way to solve it!
from inspectdf.
Hi @joniarroba thanks for the update! Glad you've found a way to solve this.
I think the problem is because there are duplicated factor levels in df$author
- vazio
appears twice in levels(df$author)
. I think think you can fix this by resetting the levels using something like
levels(df$author) <- unique(levels(df$author))
In the meantime, I'll open a new issue to handle this internally with a warning in inspectdf
.
Thanks!
from inspectdf.
I've added a factor check to the GH version of the package. So hopefully this fixes the problem you were having. Thanks!
from inspectdf.
Related Issues (20)
- Y axis % of columns that is NA HOT 5
- Add number of pairwise NA in `inspect_cor()` output
- Allow for filtered correlation plots HOT 2
- Suggestion: rotating `inspect_imb()` plot HOT 2
- Bug: `inspect_imb()` fails on factor columns HOT 1
- Rearranging output of `inspect_cat()` removes labels for `show_plot()` HOT 3
- label_size, label_angle & label_color to work for comparison plots
- show_ggplotly
- change white color for last (or second) factor. HOT 2
- travis --> GitHub actions
- improve jsd statistic for comparison
- type comparison to include names and types, new plots
- Improvements to inspect_cat
- inspect_cat and comparison plots HOT 1
- show_plot() bars not aligned w/ values below. HOT 6
- inspect_num: inconsistent binning of numerical variables in comparisons HOT 1
- inspect_num %>% show_plot fails on grouped dataframe with Error object 'mid' not found HOT 1
- inspect_num show_plot error HOT 1
- Partial argument match of 'unit' to 'units'
- Change to new cran checks badge URL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inspectdf.