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

`descriptr:::print_screen` fails if a variable has more than one class #26

Closed
GegznaV opened this issue Mar 8, 2018 · 0 comments
Closed
Labels
bug
Projects

Comments

@GegznaV
Copy link
Contributor

@GegznaV GegznaV commented Mar 8, 2018

Example

example_ds <- data.frame(
    col_integer    = c(2L, 2L, 2L, 5L, 5L),
    col_numeric    = c(1.9, NA, 2.9, 9.1, 9.6),
    col_ordinal    = ordered(c("S", "V", "V", "S", NA)),
    col_factor     = factor(c("R", "G", "G", "B", "B")),
    col_logical    = c(FALSE, TRUE, TRUE, FALSE, TRUE),
    col_character  = c("-", "-", "some text", "-", "-"),
    col_date       = Sys.Date(),
    col_time       = Sys.time(),
    
    stringsAsFactors = FALSE
)

descriptr::ds_screener(example_ds)

This example fais with error:

Error in max(sapply(lengths[[i]], nchar)) : 
  invalid 'type' (list) of argument
@aravindhebbali aravindhebbali self-assigned this Mar 8, 2018
@aravindhebbali aravindhebbali added the bug label Mar 8, 2018
@aravindhebbali aravindhebbali added this to the 0.4.1 milestone Mar 8, 2018
@aravindhebbali aravindhebbali removed their assignment Mar 8, 2018
@GegznaV GegznaV mentioned this issue Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
0.4.1
  
Awaiting triage
Linked pull requests

Successfully merging a pull request may close this issue.

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