fct_inseq() changes values without warning (but it has to order levels only) #221
Labels
bug
an unexpected problem or unintended behavior
tidy-dev-day 🤓
Tidyverse Developer Day rstd.io/tidy-dev-day
The actual behavior of function
fct_inseq()
is not documented well (see here) and the behavior of this function violates some principles of the Tidyverse:gtools::mixedsort()
(see Ex. A-2, B-2, C-2). Can this be implemented inforcats
?The examples of
fct_inseq()
(A-1, B-1, C-1 shows actual and A-2, B-2, C-2 shows expected behavior offct_inseq()
):Created on 2019-11-19 by the reprex package (v0.3.0)
For unit testing:
Session info
```r > sessioninfo::session_info("forcats") - Session info ------------------------------------------------------------------------------------------------- setting value version R version 3.6.1 (2019-07-05) os Windows 10 x64 system x86_64, mingw32 ui RStudio language (EN) collate English_United States.1252 ctype English_United States.1252 tz Europe/Helsinki date 2019-11-19package * version date lib source
assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.6.0)
backports 1.1.5 2019-10-02 [1] CRAN (R 3.6.1)
cli 1.1.0 2019-03-19 [1] CRAN (R 3.6.1)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.6.0)
digest 0.6.22 2019-10-21 [1] CRAN (R 3.6.1)
ellipsis 0.3.0 2019-09-20 [1] CRAN (R 3.6.1)
fansi 0.4.0 2018-10-05 [1] CRAN (R 3.6.0)
forcats 0.4.0 2019-02-17 [1] CRAN (R 3.6.0)
glue 1.3.1 2019-03-12 [1] CRAN (R 3.6.1)
magrittr 1.5 2014-11-22 [1] CRAN (R 3.6.0)
pillar 1.4.2 2019-06-29 [1] CRAN (R 3.6.0)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 3.6.1)
rlang 0.4.1.9000 2019-11-17 [1] Github (r-lib/rlang@88deeb2)
tibble 2.1.3 2019-06-06 [1] CRAN (R 3.6.0)
utf8 1.1.4 2018-05-24 [1] CRAN (R 3.6.0)
vctrs 0.2.0 2019-07-05 [1] CRAN (R 3.6.1)
zeallot 0.1.0 2018-01-28 [1] CRAN (R 3.6.0)
The text was updated successfully, but these errors were encountered: