Re: [R] calling the function which is stored in a list

2012-02-09 Thread Gabor Grothendieck
On Thu, Feb 9, 2012 at 2:54 AM, arunkumar wrote: > Hi > > I'm storing two functions in a list > > # creating two function >  function1 <- function(n) { >  return(sum(n)) > } > > function2 <- function(n) { >  return(mean(n)) > } > > #storing the function > function3 =c(function1,function2) > >

Re: [R] calling the function which is stored in a list

2012-02-09 Thread arunkumar1111
Thanks it works - Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/calling-the-function-which-is-stored-in-a-list-tp4372131p4372557.html Sent from the R help mailing list archive at Nabble.com. __ R-help

Re: [R] calling the function which is stored in a list

2012-02-09 Thread Uwe Ligges
On 09.02.2012 08:54, arunkumar wrote: Hi I'm storing two functions in a list # creating two function function1<- function(n) { return(sum(n)) } function2<- function(n) { return(mean(n)) } #storing the function function3 =c(function1,function2) is it possible to call the stored

[R] calling the function which is stored in a list

2012-02-09 Thread arunkumar1111
Hi I'm storing two functions in a list # creating two function function1 <- function(n) { return(sum(n)) } function2 <- function(n) { return(mean(n)) } #storing the function function3 =c(function1,function2) is it possible to call the stored function and used it ? x=c(10,29) funtion3[