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

Fails with no error if crossing by a column containing only "label" #56

Open
DanChaltiel opened this issue Mar 28, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@DanChaltiel
Copy link
Owner

library(dplyr)
library(crosstable)
mtcars2 %>% mutate(x="label") %>% crosstable(am, by=x)
#> # A tibble: 2 x 3
#>   .id   label        variable
#>   <chr> <chr>        <chr>   
#> 1 am    Transmission auto    
#> 2 am    Transmission manual
mtcars2 %>% mutate(x="lab") %>% crosstable(am, by=x)
#> # A tibble: 2 x 4
#>   .id   label        variable lab        
#>   <chr> <chr>        <chr>    <chr>      
#> 1 am    Transmission auto     19 (59.38%)
#> 2 am    Transmission manual   13 (40.62%)

Created on 2024-03-28 with reprex v2.1.0

@DanChaltiel DanChaltiel added the bug Something isn't working label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant