You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/11/29 19:59:51 UTC
[GitHub] [arrow] stephhazlitt commented on pull request #11794: ARROW-14659: [R] Remove warning about factor conversion to string in if_else()
stephhazlitt commented on pull request #11794:
URL: https://github.com/apache/arrow/pull/11794#issuecomment-981968578
With the `mutate` line removed (line 128)
e.g.
```
compare_dplyr_binding(
.input %>%
mutate(
y = if_else(int > 5, fct, factor("a"))
) %>%
collect(),
tbl
)
```
```
── Failure (test-dplyr-funcs-conditional.R:119:3): if_else and ifelse ───────────────────────────
`object` (`actual`) not equal to `expected` (`expected`).
`levels(actual$y)[1:4]`: "a" "g" "h" "i"
`levels(expected$y)[1:7]`: "a" "b" "c" "d" "g" "h" "i"
`actual$y[4:10]`: NA 1 NA 2 3 4 5
`expected$y[4:10]`: NA 1 NA 5 6 7 8
Backtrace:
1. compare_dplyr_binding(...) test-dplyr-funcs-conditional.R:119:2
2. expect_equal(via_table, expected, ...) helper-expectation.R:129:4
3. testthat::expect_equal(...) helper-expectation.R:42:4```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org