Skip to content

descr() no longer working with pipe operator in summarytools ver 1.1.4 #207

@sarakyeo

Description

@sarakyeo

I'm getting the following error when trying to use this function:

Error in `.rowNamesDF<-`(x, value = value) : invalid 'row.names' length

I typically use the function in the following format: df |> descr(col) but this no longer works. The function works fine if used in this format, though: descr(df$col). Any help appreciated. Thanks!

Session info:

R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] stargazer_5.2.3      GPArotation_2025.3-1 patchwork_1.3.2      psych_2.5.6          rstatix_0.7.2       
 [6] summarytools_1.1.4   lubridate_1.9.4      forcats_1.0.0        stringr_1.5.1        dplyr_1.1.4         
[11] purrr_1.1.0          readr_2.1.5          tidyr_1.3.1          tibble_3.3.0         ggplot2_3.5.2       
[16] tidyverse_2.0.0     

loaded via a namespace (and not attached):
 [1] gtable_0.3.6       lattice_0.22-7     tzdb_0.5.0         vctrs_0.6.5        tools_4.5.1        generics_0.1.4    
 [7] parallel_4.5.1     pkgconfig_2.0.3    checkmate_2.3.3    pryr_0.1.6         RColorBrewer_1.1-3 lifecycle_1.0.4   
[13] compiler_4.5.1     farver_2.1.2       rapportools_1.2    mnormt_2.1.1       codetools_0.2-20   carData_3.0-5     
[19] htmltools_0.5.8.1  Formula_1.2-5      crayon_1.5.3       pillar_1.11.0      car_3.1-3          MASS_7.3-65       
[25] magick_2.8.7       abind_1.4-8        nlme_3.1-168       tidyselect_1.2.1   digest_0.6.37      stringi_1.8.7     
[31] reshape2_1.4.4     pander_0.6.6       rprojroot_2.1.1    fastmap_1.2.0      grid_4.5.1         here_1.0.1        
[37] cli_3.6.5          magrittr_2.0.3     base64enc_0.1-3    broom_1.0.7        withr_3.0.2        scales_1.4.0      
[43] backports_1.5.0    bit64_4.5.2        timechange_0.3.0   matrixStats_1.5.0  bit_4.5.0.1        hms_1.1.3         
[49] tcltk_4.5.1        rlang_1.1.6        Rcpp_1.1.0         glue_1.8.0         vroom_1.6.5        rstudioapi_0.17.1 
[55] R6_2.6.1           plyr_1.8.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions