On Sat, Feb 23, 2008 at 5:52 PM, Gabor Grothendieck
<[EMAIL PROTECTED]> wrote:
> I assume he wants to be able to change the
> formals although its confusing since the example
> uses the same formals in both cases.
Yes, that was an important point that I forgot to mention! Thanks for
the pointer
I assume he wants to be able to change the
formals although its confusing since the example
uses the same formals in both cases.
On Sat, Feb 23, 2008 at 6:32 PM, John Fox <[EMAIL PROTECTED]> wrote:
> Dear Hadley,
>
> Why not just f <- g ?
>
> Regards,
> John
>
>
>
formals can be used like this:
f <- g
formals(f) <- pairlist(a=1,b=2,c=3)
On Sat, Feb 23, 2008 at 5:40 PM, hadley wickham <[EMAIL PROTECTED]> wrote:
> A simple way to alias a function is to do :
>
> g <- function(a = 1, b = 2, c = 3) a + b * c
> f <- function(...) g(...)
>
> but formals (etc) is
Dear Hadley,
Why not just f <- g ?
Regards,
John
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
> -Original Message-
> From: [EMAIL PROTECTED] [mailto
A simple way to alias a function is to do :
g <- function(a = 1, b = 2, c = 3) a + b * c
f <- function(...) g(...)
but formals (etc) is no longer very helpful. Is there an easy way to
programmatically create:
f <- function(a=1, b=2, c=3) g(a=a, b=b, c=c)
This comes up in ggplot2 where I alias
Commas would be fine especially if there were spaces too,
as in your example. I was just trying to suggest something
mimimalist ;-)
Cheers,
Roger
On Feb 23, 2008, at 11:21 AM, Martin Maechler wrote:
>> "rk" == roger koenker <[EMAIL PROTECTED]>
>>on Sat, 23 Feb 2008 10:34:41 -0600 w
> "rk" == roger koenker <[EMAIL PROTECTED]>
> on Sat, 23 Feb 2008 10:34:41 -0600 writes:
rk> I have a vector of logLik values that I'd like to return and it would
rk> be nice
rk> if the the print method didn't run them together. Could I make a plea
rk> for
rk>
Full_Name: John Brzustowski
Version: R-devel trunk and R-2.4.0
OS: linux
Submission from: (NULL) (76.10.152.79)
Here are two minor potential issues in pointer protection stack (PPS) code which
could arise in debugging R with valgrind. Only the second could possibly cause
a problem in normal use
I have a vector of logLik values that I'd like to return and it would
be nice
if the the print method didn't run them together. Could I make a plea
for
using sep = " ", rather than sep = "" in print.logLik?
url:www.econ.uiuc.edu/~rogerRoger Koenker
email [EMAIL PROTECTED
2008/2/22, Prof Brian Ripley <[EMAIL PROTECTED]>:
> On Tue, 19 Feb 2008, Laurent Gautier wrote:
>
> > Dear list,
> >
> > I am writing C code to interface with R, and I would like to know the
> > level of mutability for the type of a SEXP.
> >
> > I see that there is a macro/function TYPEOF(),
> Hello. This is my first post to the list, so first I'd like to thank
> everybody for making and mantaining such a great product as R.
> I'm writting a native binding to R from Dolphin Smalltalk. I've followed up
> the examples of the documentation showing how to run R embedded, and I got
> i
On Sat, 23 Feb 2008, Yuan Jian wrote:
> Hi,
> is it possible to call R functions from visual studio .net such as c#?
Yes.
[If you want to know 'how', please study 'Writing R Extensions'.]
> -
>
> [[alternative HTML version deleted]]
Please study the posti
Hi,
is it possible to call R functions from visual studio .net such as c#?
-
[[alternative HTML version deleted]]
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-de
13 matches
Mail list logo