rubenarslan / codebook

Cook rmarkdown codebooks from metadata on R data frames
https://rubenarslan.github.io/codebook/
Other
141 stars 16 forks source link

codebook_table(df) error? #52

Closed cloversleaves closed 2 weeks ago

cloversleaves commented 4 years ago

Great, package. Thank you

Get this error now and not sure what it could mean while using codebook_table(df). There are some attributes named using Hmisc and others haven, but haven't had this issue arise before.

Error: Problem with summarise() input skimmed. x Can't combine ..1$numeric.min and ..2$numeric.min . x Some attributes are incompatible. i The author of the class should implement vctrs methods. i See https://vctrs.r-lib.org/reference/faq-error-incompatible-attributes.html. i Input skimmed is purrr::map2(...). i The error occured in group 4: skim_type = "numeric"

rubenarslan commented 4 years ago

hi can you check if you get this error when calling skimr::skim_to_wide on your data? if so, the error isn't in codebook_table but in skimr.

cloversleaves commented 4 years ago

Hi Ruben, thank you I think it is coming from skimr then > skimr::skim_to_wide(data)

Error: Problem with summarise() input skimmed. x Problem with summarise() input ~!@#$%^&*()-+haven_labelled.sd. x Can't convert <labelled> to . i Input ~!@#$%^&*()-+haven_labelled.sd is (structure(function (..., .x = ..1, .y = ..2, . = ..1) .... i Input skimmed is purrr::map2(...). i The error occured in group 3: skim_type = "haven_labelled".