Re: [R] calling functions

2010-07-15 Thread Erik Iverson
louisey wrote: Hello everyone!! I have written a function in R and need to call it more than once say M times then take an average of my output. How would I tell R to automatically call my function many times instead of just the once? The natural way will depend on what you're trying to do

[R] calling functions

2010-07-15 Thread louisey
Hello everyone!! I have written a function in R and need to call it more than once say M times then take an average of my output. How would I tell R to automatically call my function many times instead of just the once? Thanks! xxx -- View this message in context: http://r.789695.n4.nabble.c

Re: [R] Calling functions

2008-06-17 Thread John Kane
n <[EMAIL PROTECTED]> > Subject: [R] Calling functions > To: r-help@r-project.org > Received: Tuesday, June 17, 2008, 7:32 AM > Another newbie question. > > I've written a function and saved the file as Xtabs.R, > in a central place on > a network so others will be able ot

Re: [R] Calling functions

2008-06-17 Thread Toby Marthews
Hi, Can't you just do source("Xtabs.R")? That will load in the definition. Alternatively, instead of saving the R program, save the workspace on your network (e.g. Xtabs.RData), which will contain the function definition, and arrange a link so that R always starts with that workspace loaded? Tob

[R] Calling functions

2008-06-17 Thread Michael Pearmain
Another newbie question. I've written a function and saved the file as Xtabs.R, in a central place on a network so others will be able ot use the function, My question is how do i call this function? I've tried to chance the working directory, and tried to load it via; > library(Xtabs, lib.loc="/