Displaying 5 results from an estimated 5 matches for "setcontains".
2015 Jan 06
4
setequal: better readability, reduced memory footprint, and minor speedup
Hi,
Current implementation:
setequal <- function (x, y)
{
x <- as.vector(x)
y <- as.vector(y)
all(c(match(x, y, 0L) > 0L, match(y, x, 0L) > 0L))
}
First what about replacing 'match(x, y, 0L) > 0L' and 'match(y, x, 0L) > 0L'
with 'x %in% y' and 'y %in% x', respectively. They're strictly
equivalent but the latter
2015 Jan 08
3
setequal: better readability, reduced memory footprint, and minor speedup
...nted
> using match, so if we did as you suggest, I give it about three days before
> someone suggests to inline the function call... Readability of source code
> is not usually our prime concern.
>
> The && idea does have some merit, though.
>
> Apropos, why is there no setcontains()?
>
> -pd
>
> > On 06 Jan 2015, at 22:02 , Herv? Pag?s <hpages at fredhutch.org> wrote:
> >
> > Hi,
> >
> > Current implementation:
> >
> > setequal <- function (x, y)
> > {
> > x <- as.vector(x)
> > y <- as.vect...
2015 Jan 08
0
setequal: better readability, reduced memory footprint, and minor speedup
...u'll find that it is implemented using match, so if we did as you suggest, I give it about three days before someone suggests to inline the function call... Readability of source code is not usually our prime concern.
The && idea does have some merit, though.
Apropos, why is there no setcontains()?
-pd
> On 06 Jan 2015, at 22:02 , Herv? Pag?s <hpages at fredhutch.org> wrote:
>
> Hi,
>
> Current implementation:
>
> setequal <- function (x, y)
> {
> x <- as.vector(x)
> y <- as.vector(y)
> all(c(match(x, y, 0L) > 0L, match(y, x, 0L) &...
2015 Jan 08
0
setequal: better readability, reduced memory footprint, and minor speedup
...o if we did as you suggest, I give it about three days before
>> someone suggests to inline the function call... Readability of source code
>> is not usually our prime concern.
>>
>> The && idea does have some merit, though.
>>
>> Apropos, why is there no setcontains()?
>>
>> -pd
>>
>> > On 06 Jan 2015, at 22:02 , Herv? Pag?s <hpages at fredhutch.org> wrote:
>> >
>> > Hi,
>> >
>> > Current implementation:
>> >
>> > setequal <- function (x, y)
>> > {
>> >...
2010 Aug 20
0
Wine release 1.3.1
The Wine development release 1.3.1 is now available.
What's new in this release (see below for details):
- Support for drag & drop between X11 and OLE.
- New ipconfig.exe builtin tool.
- Support for favorites in builtin Internet Explorer.
- Beginnings of a shell Explorer control.
- A number of DirectDraw code cleanups.
- Improvements to the calendar control.
- Various bug