Re: [R] primitives again

2009-03-16 Thread Wacek Kusnierczyk
Berwin A Turlach wrote: > On Sun, 15 Mar 2009 14:23:40 +0100 > Wacek Kusnierczyk wrote: > > >> Edna Bell wrote: >> >>> How do I find the functions which are primitives, please? >>> >>> >> you can scan the whole search path for functions that are primitives: >> >> primitives =

Re: [R] primitives again

2009-03-15 Thread Berwin A Turlach
On Sun, 15 Mar 2009 14:23:40 +0100 Wacek Kusnierczyk wrote: > Edna Bell wrote: > > How do I find the functions which are primitives, please? > > > > you can scan the whole search path for functions that are primitives: > > primitives = sapply(search(), function(path) > with(as.envir

Re: [R] primitives again

2009-03-15 Thread Erin Hodgess
Thank you On Sun, Mar 15, 2009 at 8:23 AM, Wacek Kusnierczyk wrote: > Edna Bell wrote: >> How do I find the functions which are primitives, please? >> > > you can scan the whole search path for functions that are primitives: > >    primitives = sapply(search(), function(path) >       with(as.envi

Re: [R] primitives again

2009-03-15 Thread Wacek Kusnierczyk
Edna Bell wrote: > How do I find the functions which are primitives, please? > you can scan the whole search path for functions that are primitives: primitives = sapply(search(), function(path) with(as.environment(path), Filter(is.primitive, lapply(ls(), get primitives is a lis

Re: [R] primitives again

2009-03-14 Thread Berwin A Turlach
G'day Edna, On Sat, 14 Mar 2009 22:52:38 -0500 Edna Bell wrote: > Dear R Gurus: Well, I guess I can answer nevertheless. :) > How do I find the functions which are primitives, please? ?is.primitive Thus, the following code would give you all the primitive functions in package base: R> pos <

[R] primitives again

2009-03-14 Thread Edna Bell
Dear R Gurus: How do I find the functions which are primitives, please? Thanks, Edna Bell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and