Re: [R] Assign and cmpfun

2012-01-06 Thread Duncan Murdoch
On 12-01-06 12:18 PM, Michael Pearmain wrote: Hi All, I've just recently discovered the cmpfun function, and was wanting to to create a function to assign this to all the functions i have created, but without explicitly naming them. I've achieved this with: foo<- function(x) { print(x)} bar<-

[R] Assign and cmpfun

2012-01-06 Thread Michael Pearmain
Hi All, I've just recently discovered the cmpfun function, and was wanting to to create a function to assign this to all the functions i have created, but without explicitly naming them. I've achieved this with: foo <- function(x) { print(x)} bar <- function(x) { print(x + 1)} > foo <- function