Re: [Rd] Illegal Logical Values

2017-10-21 Thread Radford Neal
> On Fri, 2017-10-20 at 14:01 +, brodie gaslam via R-devel wrote: > > I'm thinking of this passage: > > > > > Logical values are sent as 0 (FALSE), 1 (TRUE) or INT_MIN = > > > -2147483648 (NA, but only if NAOK is true), and the compiled code > > > should return one of these three values. (Non

Re: [Rd] Function 'factor' issues

2017-10-21 Thread Suharto Anggono Suharto Anggono via R-devel
My idea (like in https://bugs.r-project.org/bugzilla/attachment.cgi?id=1540 ): - For remapping, use f <- match(xlevs, nlevs)[f] instead of f <- match(xlevs[f], nlevs) (I have mentioned it). - Remap only if length(nlevs) differs from length(xlevs) . On use of 'order' in function 'factor' in R deve