-
Notifications
You must be signed in to change notification settings - Fork 157
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
Different results using pipes #262
Comments
That's because the data structures you've created are different: table(d.pizza$driver, d.pizza$wine_delivered)
#> 0 1
#> Butcher 85 9
#> Carpenter 214 56
#> Carter 212 19
#> Farmer 100 17
#> Hunter 139 15
#> Miller 109 16
#> Taylor 172 29
d.pizza %>%
select(driver, wine_delivered) %>%
table() %>%
as_tibble()
#> # A tibble: 14 × 3
#> driver wine_delivered n
#> <chr> <chr> <int>
#> 1 Butcher 0 85
#> 2 Carpenter 0 214
#> 3 Carter 0 212
#> 4 Farmer 0 100
#> 5 Hunter 0 139
#> 6 Miller 0 109
#> 7 Taylor 0 172
#> 8 Butcher 1 9
#> 9 Carpenter 1 56
#> 10 Carter 1 19
#> 11 Farmer 1 17
#> 12 Hunter 1 15
#> 13 Miller 1 16
#> 14 Taylor 1 29 |
Ouch! – Sorry for wasting your time.
Beat Moser
Bergstrasse 9
8322 Madetswil
Tel.: +41 79 257 96 00
Von: Lionel Henry ***@***.***>
Gesendet: Mittwoch, 21. Dezember 2022 09:12
An: tidyverse/magrittr ***@***.***>
Cc: Beat Moser ***@***.***>; Author ***@***.***>
Betreff: Re: [tidyverse/magrittr] Different results using pipes (Issue #262)
Closed #262<#262> as not planned.
—
Reply to this email directly, view it on GitHub<#262 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4323VKUT6MJFLIXX4OTNPTWOK3V7ANCNFSM6AAAAAATEIVQKA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.
Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.
Brief description of the problem
The correct result.
All zeros in t using DescTools::CramerV.
But it works here (using paste).
Probably related issue in reprex, which delivers
Created on 2022-12-20 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: