See at http://cran.r-project.org/doc/manuals/R-intro.pdf at page 54.
.First() can help you. Or create an own package (see http://cran.r-project.org/doc/manuals/exts.pdf ) and load the package, when needed. Best, Matthias > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Luis > Ridao Cruz > Gesendet: Mittwoch, 06. April 2005 15:48 > An: [email protected] > Betreff: [R] Introduce a new function in a package? > > > R-help, > > Sometimes I define functions I wish to have in any R session. > The obvious thing to do is copy-paste the code > The thing is that sometimes I don't know where I have the > function code. > > My question is if somehow I could define a function and > "introduce" it (let's say 'base' package ) so that > could be used anytime I run a different R project. > > Thank you in advance > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read > the posting guide! http://www.R-project.org/posting-guide.html > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
