codebook icon indicating copy to clipboard operation
codebook copied to clipboard

codebook_table(df) error?

Open cloversleaves opened this issue 4 years ago • 2 comments

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"

cloversleaves avatar Jun 22 '20 20:06 cloversleaves

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.

rubenarslan avatar Jul 16 '20 11:07 rubenarslan

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".

cloversleaves avatar Jul 16 '20 20:07 cloversleaves