Thanks everyone, Jorge I used your suggestion and this works perfect.
Doug
Jorge Ivan Velez wrote:
Dear Douglas,
I'm not quite sure about that, but you could do something like:
1. Save for function in txt format
2. Use source() to load it into R
As a toy example, suppose you have function
Dear Douglas,
I'm not quite sure about that, but you could do something like:
1. Save for function in txt format
2. Use source() to load it into R
As a toy example, suppose you have function called "myfunction" which is
defined as:
myfunction=funciton(x,y) x^y
Now, suppose you save "myfunction"
A simple approach would be to start a fresh R session and source your
function.
Then save that workspace as, e.g., myFuncs.RData.
In future sessions all you have to do is
attach("myFuncs.Rdata")
and your functions will be available for you to use.
-Christos
> -Original Message-
> From:
You can choose to save your function in the file ..\etc\Rprofile.site
Xiaoxu
On Fri, Oct 31, 2008 at 1:45 AM, Douglas M. Hultstrand
<[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am fairly new to R and I have created a function that I use quit
> frequently. I was wondering if there is away to sav
4 matches
Mail list logo