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
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
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
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
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="/
5 matches
Mail list logo