search for: trang1618

Displaying 2 results from an estimated 2 matches for "trang1618".

2020 May 20
1
quantile() type 1 for some ordered factors in R-devel
...) comes back NA because of this: https://github.com/cran/partykit/blob/597245ef3dfc98411ce919b74c68ba565f077c47/R/party.R#L500 I understand that most of the fixes will probably be simple with as.numeric() or as.integer(), but tracing down these breaks can be time-consuming <https://twitter.com/trang1618/status/1260906905041432578>. What about a warning whenever code that would trigger c.factor() is called? This way users are given a chance to update packages and code. Thanks, Trang On Wed, May 20, 2020 at 1:53 AM Kurt Hornik <Kurt.Hornik at wu.ac.at> wrote: > >>>>> To...
2020 May 18
3
quantile() type 1 for some ordered factors in R-devel
Hi, In R-devel (2020-05-17 r78478) quantile() type 1 seems to behave a little bit strange for some ordered factors: quantile(factor(1:3, ordered = TRUE), 0.5, type = 1) returns ?2? as expected. But quantile(factor(2:4, ordered = TRUE), 0.5, type = 1) returns ?4? and quantile(factor(3:5, ordered = TRUE), 0.5, type = 1) returns ?NA?. Furthermore, the function returns ?NA? for calls like