Displaying 20 results from an estimated 33 matches for "phaverty".
Did you mean:
haverty
2015 Jan 08
0
setequal: better readability, reduced memory footprint, and minor speedup
...a lot on the uniqueness of
x and y and whether or not you want to optimize for the TRUE or FALSE case.
You'd do much better to make some real hashes in C and compare the keys,
but it's probably not worth the complexity.
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
On Thu, Jan 8, 2015 at 2:06 PM, Peter Haverty <phaverty at gene.com> wrote:
> How about unique them both and compare the lengths? It's less work,
> especially allocation.
>
>
>
> Pete
>
> ____________________
> Peter M. Haverty, Ph.D.
> Genente...
2015 Jan 21
2
reducing redundant work in methods package
...be defined for primitive function %s
in this version of R",
sQuote(f)),
domain = NA)
ans
}
Seems to work just fine.
Yes, "el" and "elNamed" can probably go now.
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
On Wed, Jan 21, 2015 at 2:26 PM, Michael Lawrence <lawrence.michael at gene.com
> wrote:
> Note that setMethod() resolves .BasicFunsList in the methods namespace
> directly when setting a method on a primitive. Somehow there should be
> consistency between genericForPri...
2015 Jan 08
3
setequal: better readability, reduced memory footprint, and minor speedup
How about unique them both and compare the lengths? It's less work,
especially allocation.
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
On Thu, Jan 8, 2015 at 1:30 PM, peter dalgaard <pdalgd at gmail.com> wrote:
> If you look at the definition of %in%, you'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 fun...
2015 Jan 22
3
speedbump in library
...le.path(paths, "DESCRIPTION")) ]
if(use_loaded && pkg %in% loadedNamespaces()) {
dir <- if (pkg == "base") system.file()
else getNamespaceInfo(pkg, "path")
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
2015 Jan 27
2
names function for environments?
...submitted a patch and some timings to the bug tracker as
> > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16170
>
> > Regards,
> > Pete
>
> > ____________________
> > Peter M. Haverty, Ph.D.
> > Genentech, Inc.
> > phaverty at gene.com
>
> > ______________________________________________
> > R-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel at r-project.org mailing list
> http...
2015 Jan 27
2
names function for environments?
...> started. Having to supply two additional arguments to get the desired
> output doesn't help there. Think of all the perl programmers
> struggling to switch to R. Let's help them out.
> Pete
>
> ____________________
> Peter M. Haverty, Ph.D.
> Genentech, Inc.
> phaverty at gene.com
>
>
> On Tue, Jan 27, 2015 at 7:26 AM, Michael Lawrence
> <lawrence.michael at gene.com> wrote:
> > I think ls(, sort=FALSE) would be more explicit and thus clearer. There
> is
> > much precedent for having arguments that request less work to be done
>...
2015 Jan 22
5
:: and ::: as .Primitives?
...::" .Primitives? I
have submitted some examples, timings, and a patch to the R bug
tracker (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16134).
I'd be very interested to hear your thoughts on the matter.
Regards,
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
2015 Jan 21
2
reducing redundant work in methods package
...ot;),
as.list(parse(text=newfun.body))))
assign(fname, newfun, envir=ns)
}
return(TEST_ENV)
}
# run code, print items in TEST_ENV
The relevant code is in methods/R/BasicFunsList.R and
methods/R/ClassExtensions.R
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
[[alternative HTML version deleted]]
2014 Dec 03
2
we need an exists/get hybrid
...if (defined(x{'c'})) { print x{'c'}; } # This is still two lookups, but it
has the "defined" concept.
or maybe even
if (defined( foo = x{'c'} ) ) { print foo; }
Thanks again for the timings!
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
On Wed, Dec 3, 2014 at 12:48 PM, Winston Chang <winstonchang1 at gmail.com>
wrote:
> I've looked at related speed issues in the past, and have a couple
> related points to add. (I've put the info below at
> http://rpubs.com/wch/46428.)
>
> There's a si...
2015 Jan 25
2
names function for environments?
...ALSE throughout the methods and base
code, let's use names.
Would you be open to this change?
I have submitted a patch and some timings to the bug tracker as
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16170
Regards,
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
2015 Jan 22
5
:: and ::: as .Primitives?
...>> tracker (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16134).
>> I'd be very interested to hear your thoughts on the matter.
>>
>> Regards,
>> Pete
>>
>> ____________________
>> Peter M. Haverty, Ph.D.
>> Genentech, Inc.
>> phaverty at gene.com
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
> --
> Luke Tierney
> Ralph E. Wareham Professor of Mathematical Sciences
> University of Iowa...
2014 Dec 03
2
we need an exists/get hybrid
...ign" function does nothing with the "immediate" argument.
I'd be interested to hear if there is any support for a "fetch"-like
function (and/or deprecating some unused arguments).
All the best,
Pete
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
[[alternative HTML version deleted]]
2015 Jan 22
0
:: and ::: as .Primitives?
...provide the symbols "base" and "match" to the subsequent
code.
I think it's also kind of entertaining that the comments in
base/R/namespace.R note that they are using ":::" for speed purposes
only.
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
On Thu, Jan 22, 2015 at 12:54 PM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
> On Thu, Jan 22, 2015 at 11:44 AM, <luke-tierney at uiowa.edu> wrote:
>>
>> For default methods there ought to be a way to create those so the
>> default method...
2015 Jan 22
0
reducing redundant work in methods package
...sQuote(f)),
>
> domain = NA)
>
> ans
>
> }
>
> Seems to work just fine.
>
> Yes, "el" and "elNamed" can probably go now.
>
>
> Pete
>
> ____________________
> Peter M. Haverty, Ph.D.
> Genentech, Inc.
> phaverty at gene.com
>
> On Wed, Jan 21, 2015 at 2:26 PM, Michael Lawrence
> <lawrence.michael at gene.com> wrote:
>>
>> Note that setMethod() resolves .BasicFunsList in the methods namespace
>> directly when setting a method on a primitive. Somehow there should be
>>...
2015 Jan 27
0
names function for environments?
...quot; was certainly confusing for me when I
started. Having to supply two additional arguments to get the desired
output doesn't help there. Think of all the perl programmers
struggling to switch to R. Let's help them out.
Pete
____________________
Peter M. Haverty, Ph.D.
Genentech, Inc.
phaverty at gene.com
On Tue, Jan 27, 2015 at 7:26 AM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
> I think ls(, sort=FALSE) would be more explicit and thus clearer. There is
> much precedent for having arguments that request less work to be done e.g.
> unlist(use.names=FALSE)....
2015 Jan 29
0
names function for environments?
...e desired
>> output doesn't help there. Think of all the perl programmers
>> struggling to switch to R. Let's help them out.
>> Pete
>>
>> ____________________
>> Peter M. Haverty, Ph.D.
>> Genentech, Inc.
>> phaverty at gene.com
>>
>>
>> On Tue, Jan 27, 2015 at 7:26 AM, Michael Lawrence
>> <lawrence.michael at gene.com> wrote:
>> > I think ls(, sort=FALSE) would be more explicit and thus clearer. There
>> is
>> > much precedent...
2014 Dec 04
0
we need an exists/get hybrid
...two lookups, but it
> has the "defined" concept.
>
> or maybe even
>
> if (defined( foo = x{'c'} ) ) { print foo; }
>
>
> Thanks again for the timings!
>
>
> Pete
>
> ____________________
> Peter M. Haverty, Ph.D.
> Genentech, Inc.
> phaverty at gene.com
>
> On Wed, Dec 3, 2014 at 12:48 PM, Winston Chang <winstonchang1 at gmail.com>
> wrote:
>
> > I've looked at related speed issues in the past, and have a couple
> > related points to add. (I've put the info below at
> > http://rpubs.com/wch/4...
2015 Jan 22
1
:: and ::: as .Primitives?
...>> tracker (https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16134).
>> I'd be very interested to hear your thoughts on the matter.
>>
>> Regards,
>> Pete
>>
>> ____________________
>> Peter M. Haverty, Ph.D.
>> Genentech, Inc.
>> phaverty at gene.com
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
> --
> Luke Tierney
> Ralph E. Wareham Professor of Mathematical Sciences
> University of Iowa...
2015 Jan 29
1
names function for environments?
...n't help there. Think of all the perl programmers
> >> struggling to switch to R. Let's help them out.
> >> Pete
> >>
> >> ____________________
> >> Peter M. Haverty, Ph.D.
> >> Genentech, Inc.
> >> phaverty at gene.com
> >>
> >>
> >> On Tue, Jan 27, 2015 at 7:26 AM, Michael Lawrence
> >> <lawrence.michael at gene.com> wrote:
> >> > I think ls(, sort=FALSE) would be more explicit and thus clearer.
> There
> >> is...
2015 Jan 09
2
RFC: getifexists() {was [Bug 16065] "exists" ...}
>>>>> Martin Maechler <maechler at stat.math.ethz.ch>
>>>>> on Fri, 9 Jan 2015 14:00:38 +0100 writes:
>>>>> Michael Lawrence <lawrence.michael at gene.com>
>>>>> on Thu, 8 Jan 2015 14:02:26 -0800 writes:
>> On Thu, Jan 8, 2015 at 11:57 AM, <luke-tierney at uiowa.edu> wrote:
>>> On Thu, 8